Skip to content

Commit

Permalink
do not redeclare ctx in Get method
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Sep 5, 2019
1 parent a4883ef commit bd5db38
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ func (c *BlobCache) Name() string {

func (c *BlobCache) Get(ctx context.Context, key string) (io.ReadCloser, error) {

ctx, cancel := context.WithCancel(context.Background())
defer cancel()

fh, err := c.bucket.NewReader(ctx, key, nil)

if err != nil {
Expand Down

0 comments on commit bd5db38

Please sign in to comment.