mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-14 23:33:18 +00:00
The initial thread backoff value should not be empty
This commit is contained in:
@@ -305,6 +305,10 @@ func CreateGCDStorage(tokenFile string, storagePath string, threads int) (storag
|
||||
backoffsRetries: make([]int, threads),
|
||||
}
|
||||
|
||||
for b := range storage.backoffs {
|
||||
storage.backoffs[b] = 0.1 * float64(storage.numberOfThreads) // at the first error, we should still sleep some amount
|
||||
}
|
||||
|
||||
storagePathID, err := storage.getIDFromPath(0, storagePath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user