This commit is contained in:
crusader 2018-03-27 19:39:36 +09:00
parent 1c278bf60a
commit 2810e39817

View File

@ -39,9 +39,9 @@ func (sh *GatewayRPCServletHandlers) Invoke(servletCTX rpc.ServletContext, reque
md := servletCTX.GetAttribute(oogw.GRPCMetadataKey) md := servletCTX.GetAttribute(oogw.GRPCMetadataKey)
if nil == md { if nil == md {
md = metadata.Pairs( md = metadata.Pairs(
oogw.GRPCClientTypeKey, servletCTX.GetAttribute(oogw.SocketIDKey).(string), oogw.GRPCClientTypeKey, servletCTX.GetAttribute(oogw.ClientTypeKey).(string),
oogw.GRPCSessionIDKey, servletCTX.GetAttribute(oogw.SocketIDKey).(string), oogw.GRPCSessionIDKey, servletCTX.GetAttribute(oogw.SocketIDKey).(string),
oogw.GRPCTargetIDKey, servletCTX.GetAttribute(oogw.SocketIDKey).(string)) oogw.GRPCTargetIDKey, servletCTX.GetAttribute(oogw.TargetIDKey).(string))
servletCTX.SetAttribute(oogw.GRPCMetadataKey, md) servletCTX.SetAttribute(oogw.GRPCMetadataKey, md)
} }