We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 754f3c6 commit b954b8dCopy full SHA for b954b8d
lib/model/store.dart
@@ -694,7 +694,6 @@ class UpdateMachine {
694
assert(debugLog('Transient error polling event queue for $store: $e\n'
695
'Backing off, then will retry…'));
696
// TODO tell user if transient polling errors persist
697
- // TODO reset to short backoff eventually
698
await backoffMachine.wait();
699
assert(debugLog('… Backoff wait complete, retrying poll.'));
700
continue;
@@ -716,6 +715,9 @@ class UpdateMachine {
716
715
if (events.isNotEmpty) {
717
lastEventId = events.last.id;
718
}
+
719
+ // On success, reset the backoff.
720
+ backoffMachine.reset();
721
722
723
0 commit comments