forked from TrueCloudLab/restic
8206cd19c8
When the context used for a load operation is canceled, then the result is always an error independent of whether the file could be retrieved from the backend. Do not false positively trip the circuit breaker in this case. The old behavior was problematic when trying to lock a repository. When `Lock.checkForOtherLocks` listed multiple lock files in parallel and one of them fails to load, then all other loads were canceled. This cancelation was remembered by the circuit breaker, such that locking retries would fail. |
||
---|---|---|
.. | ||
backend_retry.go | ||
backend_retry_test.go | ||
testing.go |