From 6ba02fb7c5dd2e8985ade7303b33c940d4d1d6a9 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Mon, 12 Aug 2024 15:31:47 +0200 Subject: pkg/asset: simplify gcs code --- pkg/gcs/gcs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/gcs') diff --git a/pkg/gcs/gcs.go b/pkg/gcs/gcs.go index 2b7a87ab9..e46350d2c 100644 --- a/pkg/gcs/gcs.go +++ b/pkg/gcs/gcs.go @@ -177,8 +177,7 @@ type Object struct { } func (client *Client) ListObjects(bucket string) ([]*Object, error) { - ctx := context.Background() - it := client.client.Bucket(bucket).Objects(ctx, nil) + it := client.client.Bucket(bucket).Objects(client.ctx, nil) ret := []*Object{} for { objAttrs, err := it.Next() -- cgit mrf-deployment