This commit is contained in:
crusader 2018-05-11 17:05:31 +09:00
parent ddfa0defed
commit 5c8407b9fd

View File

@ -9,6 +9,7 @@ import (
"git.loafle.net/commons/server-go"
css "git.loafle.net/commons/server-go/socket"
cssw "git.loafle.net/commons/server-go/socket/web"
oe "git.loafle.net/overflow/external-go"
oeg "git.loafle.net/overflow/external-go/grpc"
og "git.loafle.net/overflow/gateway"
"github.com/valyala/fasthttp"
@ -79,9 +80,9 @@ func (s *RPCServlets) Handle(servletCtx server.ServletCtx,
if nil != _clientType && nil != _sessionID && nil != _targetID {
md = metadata.Pairs(
og.GRPCClientTypeKey.String(), _clientType.(og.ClientType).String(),
og.GRPCSessionIDKey.String(), _sessionID.(string),
og.GRPCTargetIDKey.String(), _targetID.(string),
oe.GRPCClientTypeKey.String(), _clientType.(og.ClientType).String(),
oe.GRPCSessionIDKey.String(), _sessionID.(string),
oe.GRPCTargetIDKey.String(), _targetID.(string),
)
}