Skip to content

Commit

Permalink
Merge pull request #17732 from influxdata/sranka-context-aware-client…
Browse files Browse the repository at this point in the history
…-write

fix(http/write_handler): propagate context to http request
  • Loading branch information
sranka authored Apr 15, 2020
2 parents c891e96 + 744a2c1 commit bbfb460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/write_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func (s *WriteService) Write(ctx context.Context, orgID, bucketID influxdb.ID, r
return err
}

req, err := http.NewRequest("POST", u.String(), r)
req, err := http.NewRequestWithContext(ctx, "POST", u.String(), r)
if err != nil {
return err
}
Expand Down

0 comments on commit bbfb460

Please sign in to comment.