From 48cd11a36131298ae3f7f213b1c5423ab5180267 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Tue, 25 May 2021 16:58:31 -0600 Subject: [PATCH] Disable Azure default timeout --- abs/replica_client.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/abs/replica_client.go b/abs/replica_client.go index 91115e2..d1e1f45 100644 --- a/abs/replica_client.go +++ b/abs/replica_client.go @@ -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