From b91fc70ae88a0e9d8d228c6018c819884599be1a Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 16 Mar 2018 15:05:51 +0900 Subject: [PATCH] ing --- constants.go | 2 +- internal/server/rpc/gateway_rpc_servlet_handlers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants.go b/constants.go index 5f9090b..154e985 100644 --- a/constants.go +++ b/constants.go @@ -13,5 +13,5 @@ const ( ConfigPathFlagName = "config-dir" ConfigFileName = "config.json" - GRPCUserIDKey = "GRPCUserID" + GRPCSessionIDKey = "SESSION_ID" ) diff --git a/internal/server/rpc/gateway_rpc_servlet_handlers.go b/internal/server/rpc/gateway_rpc_servlet_handlers.go index b3b8322..18e8c65 100644 --- a/internal/server/rpc/gateway_rpc_servlet_handlers.go +++ b/internal/server/rpc/gateway_rpc_servlet_handlers.go @@ -24,7 +24,7 @@ type GatewayRPCServletHandlers struct { } func (sh *GatewayRPCServletHandlers) Invoke(servletCTX rpc.ServletContext, requestCodec protocol.RegistryCodec) (result interface{}, err error) { - md := metadata.Pairs(oogw.GRPCUserIDKey, servletCTX.GetAttribute(oogw.SocketIDKey).(string)) + md := metadata.Pairs(oogw.GRPCSessionIDKey, servletCTX.GetAttribute(oogw.SocketIDKey).(string)) grpcCTX := metadata.NewOutgoingContext(context.Background(), md) params, err := requestCodec.Params()