Codebase list golang-github-go-kit-kit / 0012c63
Merge pull request #535 from stanxii/master upgrade go 1.7 ctxhttp to req.WithContext Peter Bourgon authored 6 years ago GitHub committed 6 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
77 "io/ioutil"
88 "net/http"
99 "net/url"
10
11 "golang.org/x/net/context/ctxhttp"
1210
1311 "github.com/go-kit/kit/endpoint"
1412 )
117115 ctx = f(ctx, req)
118116 }
119117
120 resp, err = ctxhttp.Do(ctx, c.client, req)
118 resp, err = c.client.Do(req.WithContext(ctx))
119
121120 if err != nil {
122121 return nil, err
123122 }