From 417c70033b64ca880c1962dae23ededf6d115d69 Mon Sep 17 00:00:00 2001 From: liuhaotian Date: Sun, 23 Jan 2022 14:58:26 +0800 Subject: [PATCH] feat : token service --- app/brahma/api/murder/internal/handler/scripts_h.go | 2 +- app/brahma/service/token/internal/server/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/brahma/api/murder/internal/handler/scripts_h.go b/app/brahma/api/murder/internal/handler/scripts_h.go index 7bf9b21..523d973 100644 --- a/app/brahma/api/murder/internal/handler/scripts_h.go +++ b/app/brahma/api/murder/internal/handler/scripts_h.go @@ -91,7 +91,7 @@ func DeleteScriptsH(ctx *fiber.Ctx) error { func GetScriptApi(ctx *fiber.Ctx) error { outgoingContext, cancelFunc := pkg.TransFiberCtx2NewOutgoingContext(ctx, 3*time.Second) defer cancelFunc() - c := murders.NewMurdersClient(rpc.GetServiceConn("murder")) + c := murders.NewMurdersClient(rpc.GetServiceConn("token")) page := ctx.Query("page", "1") limit := ctx.Query("size", "10") diff --git a/app/brahma/service/token/internal/server/server.go b/app/brahma/service/token/internal/server/server.go index 2dcfec3..27f137c 100644 --- a/app/brahma/service/token/internal/server/server.go +++ b/app/brahma/service/token/internal/server/server.go @@ -11,7 +11,7 @@ import ( ) func RpcServer() { - lis, err := net.Listen("tcp", ":3001") + lis, err := net.Listen("tcp", ":3100") if err != nil { ctxLogger.Info(nil, "brahma server start up error", zap.String("error", err.Error())) }