From ae4b4109b21c341cbe1b128c20479f5e7e50bffc Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Sun, 14 Aug 2016 14:35:50 -0700 Subject: [PATCH] pkg/httputil: simplify RequestCanceler args --- pkg/httputil/httputil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/httputil/httputil.go b/pkg/httputil/httputil.go index daf43bd8f..859fc9d49 100644 --- a/pkg/httputil/httputil.go +++ b/pkg/httputil/httputil.go @@ -13,7 +13,7 @@ import ( "net/http" ) -func RequestCanceler(rt http.RoundTripper, req *http.Request) func() { +func RequestCanceler(req *http.Request) func() { ch := make(chan struct{}) req.Cancel = ch