Skip to content

Commit

Permalink
Fix - context timeout not launched on get bucket location minio#1413
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro.labad committed Nov 23, 2020
1 parent 6914cb6 commit 3d33dc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bucket-cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (c Client) getBucketLocation(ctx context.Context, bucketName string) (strin
return "", err
}

req = req.WithContext(ctx)
// Initiate the request.
resp, err := c.do(req)
defer closeResponse(resp)
Expand Down

0 comments on commit 3d33dc8

Please sign in to comment.