Skip to content
Snippets Groups Projects
Commit 8583f7a3 authored by fangyincheng's avatar fangyincheng
Browse files

Mod:change timer to wheel

parent 9a60b0fe
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ func (c *Client) call(ct CallType, addr string, svcUrl common.URL, method string
}
select {
case <-time.After(c.opts.RequestTimeout):
case <-getty.GetTimeWheel().After(c.opts.RequestTimeout):
err = errClientReadTimeout
c.removePendingResponse(SequenceType(rsp.seq))
case <-rsp.done:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment