From f874c88ee641881229b74bc5afa8f2490120d91b Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 8 Jul 2024 15:46:38 +0200 Subject: add ctx argument to Account.Capabilities --- bulk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bulk.go') diff --git a/bulk.go b/bulk.go index f345345..7115b26 100644 --- a/bulk.go +++ b/bulk.go @@ -67,7 +67,7 @@ const ( // This operation returns (0, ErrNotSupported) if the server does not support // bulk-uploading. func (a *Account) BulkUpload(ctx context.Context, uploadPath string, format BulkUploadFormat, contents io.Reader, opts *RequestOptions) (int, error) { - caps, err := a.Capabilities() + caps, err := a.Capabilities(ctx) if err != nil { return 0, err } @@ -158,7 +158,7 @@ func (a *Account) BulkDelete(ctx context.Context, objects []*Object, containers } // check capabilities to choose deletion method - caps, err := a.Capabilities() + caps, err := a.Capabilities(ctx) if err != nil { return 0, 0, err } -- cgit v1.2.3