Skip to content

Avoid blocking and panicking where possible #89

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

Closed
wants to merge 3 commits into from

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented May 9, 2023

Fixes #50

We avoid unwraps in a number of cases and switch some out for except.

Also, we had previously experienced cases where calling in via sync_wallets could block the world. Here we avoid calling block_on where possible to ensure we don't hit these cases anymore.

@tnull tnull marked this pull request as draft May 9, 2023 15:27
@tnull
Copy link
Collaborator Author

tnull commented May 9, 2023

Draft since this needs further testing.

@tnull tnull force-pushed the 2023-05-fix-blocking-sync branch from 6a7dc4a to c803028 Compare May 10, 2023 07:44
@tnull tnull force-pushed the 2023-05-fix-blocking-sync branch from a36faa4 to 0e0f6ee Compare May 10, 2023 10:47
@tnull tnull changed the title Avoid calling block_on on our main runtime Avoid blocking and panicking where possible May 11, 2023
@tnull tnull added this to the 0.1 milestone May 11, 2023
@tnull
Copy link
Collaborator Author

tnull commented May 22, 2023

Closing for now, will open two separate PRs for this.

@tnull tnull closed this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid panics where possible
1 participant