Skip to content

Commit

Permalink
chore(all): merging master and resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rneillj committed Oct 4, 2021
2 parents 8dfc9d6 + 144bfc1 commit 1081294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: go
go_import_path: github.com/mailgun/groupcache

os: linux
dist: trusty
dist: xenial
sudo: false

script:
Expand All @@ -12,6 +12,7 @@ go:
- 1.13.x
- 1.14.x
- 1.15.x
- 1.17.x
- master

cache:
Expand Down
6 changes: 1 addition & 5 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,11 @@ func (h *httpGetter) makeRequest(ctx context.Context, m string, in request, b io
url.QueryEscape(in.GetGroup()),
url.QueryEscape(in.GetKey()),
)

req, err := http.NewRequest(m, u, b)
req, err := http.NewRequestWithContext(ctx, method, u, nil)
if err != nil {
return err
}

// Pass along the context to the RoundTripper
req = req.WithContext(ctx)

tr := http.DefaultTransport
if h.getTransport != nil {
tr = h.getTransport(ctx)
Expand Down

0 comments on commit 1081294

Please sign in to comment.