From a090688b4918d1d145feb2b5ad2c06eeeeaa0c00 Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 21 May 2024 21:04:44 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BD=BF=E7=94=A8=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E8=BF=9B=E8=A1=8Crpc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.go b/main/main.go index 4b9470e..793eb7e 100644 --- a/main/main.go +++ b/main/main.go @@ -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())