Disable Azure default timeout

This commit is contained in:
Ben Johnson
2021-05-25 16:58:31 -06:00
parent 18e8805798
commit 48cd11a361

View File

@@ -75,7 +75,11 @@ func (c *ReplicaClient) Init(ctx context.Context) (err error) {
}
// Build pipeline and reference to container.
pipeline := azblob.NewPipeline(credential, azblob.PipelineOptions{})
pipeline := azblob.NewPipeline(credential, azblob.PipelineOptions{
Retry: azblob.RetryOptions{
TryTimeout: 24 * time.Hour,
},
})
containerURL := azblob.NewServiceURL(*endpointURL, pipeline).NewContainerURL(c.Bucket)
c.containerURL = &containerURL