mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/httputil: simplify RequestCanceler args
This commit is contained in:
parent
1b5a129bbe
commit
ae4b4109b2
@ -13,7 +13,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RequestCanceler(rt http.RoundTripper, req *http.Request) func() {
|
func RequestCanceler(req *http.Request) func() {
|
||||||
ch := make(chan struct{})
|
ch := make(chan struct{})
|
||||||
req.Cancel = ch
|
req.Cancel = ch
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user