Skip to content

Commit fac8dff

Browse files
committed
Fix concurrency link and remove redundant metadata
1 parent 8d63deb commit fac8dff

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

backends/azure/azure.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"sync"
1313
"time"
1414

15-
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
1615
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
1716
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
1817
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror"
@@ -95,7 +94,7 @@ type Options struct {
9594

9695
// Concurrency defines the max number of concurrent uploads to be performed to upload the file.
9796
// Each concurrent upload will create a buffer of size BlockSize. The default value is one.
98-
// https://github.com/Azure/azure-sdk-for-go/blob/e5c902ce7aca5aa0f4c7bb7e46c18c8fc91ad458/sdk/storage/azblob/blockblob/models.go#L29
97+
// https://github.com/Azure/azure-sdk-for-go/blob/e5c902ce7aca5aa0f4c7bb7e46c18c8fc91ad458/sdk/storage/azblob/blockblob/models.go#L264
9998
Concurrency int `yaml:"concurrency"`
10099

101100
// Not loaded from YAML
@@ -217,9 +216,7 @@ func New(ctx context.Context, opt Options) (*Backend, error) {
217216
metricCalls.WithLabelValues("create-container").Inc()
218217
metricLastCallTimestamp.WithLabelValues("create-container").SetToCurrentTime()
219218

220-
_, err := client.CreateContainer(ctx, opt.Container, &azblob.CreateContainerOptions{
221-
Metadata: map[string]*string{"hello": to.Ptr("world")},
222-
})
219+
_, err := client.CreateContainer(ctx, opt.Container, &azblob.CreateContainerOptions{})
223220

224221
if err != nil {
225222
if bloberror.HasCode(err, bloberror.ContainerAlreadyExists) {

0 commit comments

Comments
 (0)