Disable Azure default timeout
This commit is contained in:
@@ -75,7 +75,11 @@ func (c *ReplicaClient) Init(ctx context.Context) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build pipeline and reference to container.
|
// 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)
|
containerURL := azblob.NewServiceURL(*endpointURL, pipeline).NewContainerURL(c.Bucket)
|
||||||
c.containerURL = &containerURL
|
c.containerURL = &containerURL
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user