feat 使用直接连接进行rpc
All checks were successful
Build image / build (push) Successful in 1m33s

This commit is contained in:
timerzz 2024-05-21 21:04:44 +08:00
parent 7d5c836e80
commit a090688b49

View File

@ -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())