diff options
Diffstat (limited to 'pkg/gcs/gcs.go')
| -rw-r--r-- | pkg/gcs/gcs.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gcs/gcs.go b/pkg/gcs/gcs.go index e46350d2c..756d2c65d 100644 --- a/pkg/gcs/gcs.go +++ b/pkg/gcs/gcs.go @@ -38,8 +38,7 @@ func (file *File) Reader() (io.ReadCloser, error) { return file.handle.NewReader(file.ctx) } -func NewClient() (*Client, error) { - ctx := context.Background() +func NewClient(ctx context.Context) (*Client, error) { storageClient, err := storage.NewClient(ctx) if err != nil { return nil, err |
