From e02041f4ed7d5027cfab2c56403c633d1dcad083 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Sat, 23 Nov 2019 15:28:03 -0500 Subject: [PATCH] Increase the number of retries for the b2 backend from 10 to 15 Retrying 10 times means a retry window of about 5 minutes, which might be too short. 15 corresponds to about 10 minutes. --- src/duplicacy_b2client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_b2client.go b/src/duplicacy_b2client.go index 1598955..28b662c 100644 --- a/src/duplicacy_b2client.go +++ b/src/duplicacy_b2client.go @@ -85,7 +85,7 @@ func NewB2Client(applicationKeyID string, applicationKey string, storageDir stri storageDir += "/" } - maximumRetries := 10 + maximumRetries := 15 if value, found := os.LookupEnv("DUPLICACY_B2_RETRIES"); found && value != "" { maximumRetries, _ = strconv.Atoi(value) LOG_INFO("B2_RETRIES", "Setting maximum retries for B2 to %d", maximumRetries)