Skip to content

Commit 0ae4e30

Browse files
fix: avoid rate limits in Bootstrap.askSetupCrossSigning
Signed-off-by: The one with the braid <[email protected]>
1 parent 41ec697 commit 0ae4e30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/encryption/utils/bootstrap.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,12 @@ class Bootstrap {
494494
}
495495
}
496496
if (newSsssKey != null) {
497-
final storeFutures = <Future<void>>[];
497+
Logs().v('Store new SSSS key entries...');
498+
// NOTE(TheOneWithTheBraid): do not use Future.wait due to rate limits
499+
// and token refresh trouble
498500
for (final entry in secretsToStore.entries) {
499-
storeFutures.add(newSsssKey!.store(entry.key, entry.value));
501+
await newSsssKey!.store(entry.key, entry.value);
500502
}
501-
Logs().v('Store new SSSS key entries...');
502-
await Future.wait(storeFutures);
503503
}
504504

505505
final keysToSign = <SignableKey>[];

0 commit comments

Comments
 (0)