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