ing
This commit is contained in:
parent
5b2b7c19e4
commit
535f6dbd23
|
@ -4,6 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
|
"git.loafle.net/commons_go/logging"
|
||||||
"git.loafle.net/commons_go/rpc"
|
"git.loafle.net/commons_go/rpc"
|
||||||
"git.loafle.net/commons_go/rpc/gateway"
|
"git.loafle.net/commons_go/rpc/gateway"
|
||||||
"git.loafle.net/commons_go/rpc/protocol"
|
"git.loafle.net/commons_go/rpc/protocol"
|
||||||
|
@ -24,7 +25,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) {
|
||||||
defer func () {
|
defer func() {
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logging.Logger().Errorf("Gateway Websocket: Inovke error %v", err)
|
logging.Logger().Errorf("Gateway Websocket: Inovke error %v", err)
|
||||||
}
|
}
|
||||||
|
@ -33,7 +34,7 @@ func (sh *GatewayRPCServletHandlers) Invoke(servletCTX rpc.ServletContext, reque
|
||||||
result = nil
|
result = nil
|
||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
}
|
}()
|
||||||
|
|
||||||
md := servletCTX.GetAttribute(oogw.GRPCMetadataKey)
|
md := servletCTX.GetAttribute(oogw.GRPCMetadataKey)
|
||||||
if nil == md {
|
if nil == md {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user