call reqRes.SetDone in grpc client
This commit is contained in:
parent
73e5c3cb7b
commit
2c21c7be89
|
@ -197,6 +197,7 @@ func (cli *grpcClient) finishAsyncCall(req *types.Request, res *types.Response)
|
||||||
reqres := NewReqRes(req)
|
reqres := NewReqRes(req)
|
||||||
reqres.Response = res // Set response
|
reqres.Response = res // Set response
|
||||||
reqres.Done() // Release waiters
|
reqres.Done() // Release waiters
|
||||||
|
reqres.SetDone() // so reqRes.SetCallback will run the callback
|
||||||
|
|
||||||
// Notify reqRes listener if set
|
// Notify reqRes listener if set
|
||||||
if cb := reqres.GetCallback(); cb != nil {
|
if cb := reqres.GetCallback(); cb != nil {
|
||||||
|
|
Loading…
Reference in New Issue