aboutsummaryrefslogtreecommitdiff
path: root/bulk.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2024-07-08 15:46:38 +0200
committerStefan Majewsky <majewsky@gmx.net>2024-07-08 15:58:48 +0200
commitf874c88ee641881229b74bc5afa8f2490120d91b (patch)
treeb659e602831cefdea385dd021d45501c1c29c6d2 /bulk.go
parent4fac97b5e944ce70cdca3679f5c2b1eef9b83952 (diff)
downloadgo-schwift-f874c88ee641881229b74bc5afa8f2490120d91b.tar.gz
add ctx argument to Account.Capabilities
Diffstat (limited to 'bulk.go')
-rw-r--r--bulk.go4
1 files changed, 2 insertions, 2 deletions
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
}