ing
This commit is contained in:
parent
a356983559
commit
43c744e9ad
|
@ -2,14 +2,15 @@ package rpc
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"git.loafle.net/commons_go/logging"
|
||||
"git.loafle.net/commons_go/rpc"
|
||||
crcwf "git.loafle.net/commons_go/rpc/connection/websocket/fasthttp"
|
||||
"git.loafle.net/commons_go/rpc/gateway"
|
||||
"git.loafle.net/commons_go/rpc/protocol"
|
||||
"git.loafle.net/commons_go/rpc/protocol/json"
|
||||
oogw "git.loafle.net/overflow/overflow_gateway_websocket"
|
||||
"git.loafle.net/overflow/overflow_gateway_websocket/external/grpc"
|
||||
"google.golang.org/grpc/metadata"
|
||||
)
|
||||
|
||||
|
@ -45,10 +46,12 @@ func (sh *GatewayRPCServletHandlers) Invoke(servletCTX rpc.ServletContext, reque
|
|||
return nil, err
|
||||
}
|
||||
|
||||
r, err := grpc.Exec(grpcCTX, requestCodec.Method(), params)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
logging.Logger().Debug(fmt.Sprintf("method:%s, params:%v", requestCodec.Method(), params))
|
||||
// r, err := grpc.Exec(grpcCTX, requestCodec.Method(), params)
|
||||
// if err != nil {
|
||||
// return nil, err
|
||||
// }
|
||||
r := struct{}{}
|
||||
|
||||
return r, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user