-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(common,store-sync): improve initial sync to not block returned promise #1315
Conversation
🦋 Changeset detectedLatest commit: 7d84754 The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
… into holic/sync-step-indexer-fetch-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
@@ -1,3 +1,3 @@ | |||
export function wait(ms: number): Promise<void> { | |||
return new Promise((resolve) => setTimeout(resolve, ms)); | |||
return new Promise<void>((resolve) => setTimeout(() => resolve(), ms)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure it's necessary, just slightly more explicit to avoid arguments passing through to resolve
(I had this in waitForIdle
and felt more consistent to do it here too)
fixes #1238
TODO:
blockStorageOperations$
, and if not, see if we can add back in thelog
expectation