mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-02 11:21:11 +08:00
增加异步Responder有效性判断接口
This commit is contained in:
@@ -25,6 +25,10 @@ type RpcResponse struct {
|
||||
|
||||
type Responder = RequestHandler
|
||||
|
||||
func (r *Responder) IsInvalid() bool {
|
||||
return reflect.ValueOf(*r).Pointer() == reflect.ValueOf(reqHandlerNull).Pointer()
|
||||
}
|
||||
|
||||
//var rpcResponsePool sync.Pool
|
||||
var rpcRequestPool sync.Pool
|
||||
var rpcCallPool sync.Pool
|
||||
|
||||
Reference in New Issue
Block a user