异常宕机捕获处理

This commit is contained in:
duanhf2012
2020-04-01 15:21:49 +08:00
parent a76527c7d7
commit 27ff65726a
6 changed files with 64 additions and 22 deletions

View File

@@ -77,14 +77,6 @@ type RpcAgent struct {
userData interface{}
}
type RpcRequestRw struct {
//
ServiceMethod string // format: "Service.Method"
//Seq uint64 // sequence number chosen by client
InputParam []byte
requestHandle RequestHandler
}
func (agent *RpcAgent) WriteRespone(serviceMethod string,seq uint64,reply interface{},err *RpcError) {
var rpcRespone RpcResponse