mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
api/rafthttp: remove deprecated req.Cancel.
This commit is contained in:
@@ -28,8 +28,6 @@ func (t *roundTripperBlocker) RoundTrip(req *http.Request) (*http.Response, erro
|
||||
select {
|
||||
case <-t.unblockc:
|
||||
return &http.Response{StatusCode: http.StatusNoContent, Body: &nopReadCloser{}}, nil
|
||||
case <-req.Cancel:
|
||||
return nil, errors.New("request canceled")
|
||||
case <-ctx.Done():
|
||||
return nil, errors.New("request canceled")
|
||||
case <-c:
|
||||
|
||||
Reference in New Issue
Block a user