Merge pull request #17732 from influxdata/sranka-context-aware-client-write

fix(http/write_handler): propagate context to http request
pull/17753/head
Pavel Závora 2020-04-15 07:06:43 +02:00 committed by GitHub
commit bbfb460be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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