Skip to content
Permalink
Browse files

Bump the max backoff way down, but up retries way up.

  • Loading branch information...
archon810 committed Aug 14, 2019
1 parent 941961b commit 52ca17a7d1cac3b0c8b30330f9190f0a6c031a59
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/duplicacy_gcdstorage.go
@@ -53,9 +53,9 @@ type GCDConfig struct {

func (storage *GCDStorage) shouldRetry(threadIndex int, err error) (bool, error) {

const MAX_ATTEMPTS = 20
const MAX_ATTEMPTS = 100

maximumBackoff := 131072
maximumBackoff := 2048
if maximumBackoff < storage.numberOfThreads {
maximumBackoff = storage.numberOfThreads
}

0 comments on commit 52ca17a

Please sign in to comment.
You can’t perform that action at this time.