feat:multi cluster application

This commit is contained in:
pengcong06
2020-05-25 22:38:03 +08:00
parent d4b7d88b4b
commit 59839439d5
73 changed files with 9838 additions and 6278 deletions

View File

@@ -168,6 +168,8 @@ func (g *GrpcServer) unaryServerLogInterceptor() grpc.UnaryServerInterceptor {
requestId := ctxutil.GetRequestId(ctx)
ctx = ctxutil.SetRequestId(ctx, requestId)
ctx = ctxutil.ContextWithSender(ctx, s)
locale := ctxutil.GetLocale(ctx)
ctx = ctxutil.SetLocale(ctx, locale)
method := strings.Split(info.FullMethod, "/")
action := method[len(method)-1]