Skip to content
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

style(solo): Avoid dropping promises #7580

Closed
wants to merge 1 commit into from

Conversation

kriskowal
Copy link
Member

Description

Per #6000, this sinks the floating promises in the solo package.

Security Considerations

This should give us greater confidence that errors are observable in the relevant async contexts.

Scaling Considerations

This should not impact scalability.

Documentation Considerations

This should not have user observable effects and should not require documentation.

Testing Considerations

These changes should be adequately covered by the solo integration test in CI but solo is in general not covered by unit tests.

@kriskowal kriskowal requested a review from michaelfig May 2, 2023 20:56
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one muddification that should be clarified. :)

E(walletAdmin).resolveAttMaker(attMaker);
});

const resolvedAttrMakers = Promise.all([walletP, attMakerP]).then(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not an AttributeMaker, it's an AttestationMaker. And together, they are const walletInitializedP.

@kriskowal kriskowal force-pushed the kris-6000-solo-dangling-promises branch from 99c69fa to 88e5ec3 Compare May 2, 2023 21:29
@kriskowal kriskowal added the automerge:rebase Automatically rebase updates, then merge label May 2, 2023
@kriskowal kriskowal force-pushed the kris-6000-solo-dangling-promises branch from 88e5ec3 to a95fb3e Compare May 3, 2023 01:21
@kriskowal
Copy link
Member Author

Will return to this another time. The problems revealed in CI have been too time-consuming to isolate for now.

@kriskowal kriskowal closed this May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants