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

Add #[blocking_handler] to wrap handler in block_in_place #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Restioson
Copy link
Contributor

@Restioson Restioson commented Jul 19, 2022

This should help to address get10101/itchysats#2453. This is part of proposed solution 1: wrap wallet operations in block_in_place. I am not sure if using block_in_place so often is a good idea (but it will be better than not using it). Solution 2, running the entire actor on a blocking thread, might make more sense.

@Restioson
Copy link
Contributor Author

I've tried to annotate all the wallet handlers with this, but I'm not 100% sure how to test with confidence that it doesn't block the tokio runtime anymore.

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.

1 participant