ing
This commit is contained in:
parent
9fd507f383
commit
b91fc70ae8
|
@ -13,5 +13,5 @@ const (
|
||||||
ConfigPathFlagName = "config-dir"
|
ConfigPathFlagName = "config-dir"
|
||||||
ConfigFileName = "config.json"
|
ConfigFileName = "config.json"
|
||||||
|
|
||||||
GRPCUserIDKey = "GRPCUserID"
|
GRPCSessionIDKey = "SESSION_ID"
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,7 +24,7 @@ type GatewayRPCServletHandlers struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sh *GatewayRPCServletHandlers) Invoke(servletCTX rpc.ServletContext, requestCodec protocol.RegistryCodec) (result interface{}, err error) {
|
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)
|
grpcCTX := metadata.NewOutgoingContext(context.Background(), md)
|
||||||
|
|
||||||
params, err := requestCodec.Params()
|
params, err := requestCodec.Params()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user