There was an error while loading. Please reload this page.
1 parent 46f2c87 commit 6996880Copy full SHA for 6996880
1 file changed
component/file_cache/async.go
@@ -225,6 +225,8 @@ func (fc *FileCache) servicePendingOps() {
225
return
226
case <-fc.startScheduledUploads:
227
// check if we're connected
228
+ // exponential backoff is implemented inside CloudConnected(),
229
+ // so we're safe to call it naively every second like this
230
if !fc.NextComponent().CloudConnected() {
231
// we are offline, wait for a while before checking again
232
select {
0 commit comments