Browse Source

pkg/httputil: simplify RequestCanceler args

Gyu-Ho Lee 9 years ago
parent
commit
ae4b4109b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/httputil/httputil.go

+ 1 - 1
pkg/httputil/httputil.go

@@ -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