feat : token service
continuous-integration/drone/push Build is passing Details

master
liuhaotian 2022-01-23 14:58:26 +08:00
parent b3c49eaa34
commit 417c70033b
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ func DeleteScriptsH(ctx *fiber.Ctx) error {
func GetScriptApi(ctx *fiber.Ctx) error { func GetScriptApi(ctx *fiber.Ctx) error {
outgoingContext, cancelFunc := pkg.TransFiberCtx2NewOutgoingContext(ctx, 3*time.Second) outgoingContext, cancelFunc := pkg.TransFiberCtx2NewOutgoingContext(ctx, 3*time.Second)
defer cancelFunc() defer cancelFunc()
c := murders.NewMurdersClient(rpc.GetServiceConn("murder")) c := murders.NewMurdersClient(rpc.GetServiceConn("token"))
page := ctx.Query("page", "1") page := ctx.Query("page", "1")
limit := ctx.Query("size", "10") limit := ctx.Query("size", "10")

View File

@ -11,7 +11,7 @@ import (
) )
func RpcServer() { func RpcServer() {
lis, err := net.Listen("tcp", ":3001") lis, err := net.Listen("tcp", ":3100")
if err != nil { if err != nil {
ctxLogger.Info(nil, "brahma server start up error", zap.String("error", err.Error())) ctxLogger.Info(nil, "brahma server start up error", zap.String("error", err.Error()))
} }