This commit is contained in:
parent
7d5c836e80
commit
a090688b49
@ -4,6 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"gitea.timerzz.com/kedaya_haitao/common/pkg/database"
|
"gitea.timerzz.com/kedaya_haitao/common/pkg/database"
|
||||||
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
|
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
|
||||||
|
"gitea.timerzz.com/kedaya_haitao/pusher/rpc/pusher"
|
||||||
|
"github.com/cloudwego/kitex/client"
|
||||||
"github.com/gofiber/fiber/v3"
|
"github.com/gofiber/fiber/v3"
|
||||||
"github.com/gofiber/fiber/v3/middleware/cors"
|
"github.com/gofiber/fiber/v3/middleware/cors"
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
@ -34,6 +36,8 @@ func main() {
|
|||||||
|
|
||||||
watcherCtl := watcher.NewController(ctx, db, pool)
|
watcherCtl := watcher.NewController(ctx, db, pool)
|
||||||
|
|
||||||
|
pusher.InitClient("pusher", client.WithHostPorts("pusher:8080"))
|
||||||
|
|
||||||
r := fiber.New()
|
r := fiber.New()
|
||||||
r.Use(cors.New())
|
r.Use(cors.New())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user