-
Notifications
You must be signed in to change notification settings - Fork 262
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
Make EventSubscription and FilterEvents Send-able #471
Conversation
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.
LGTM
subxt/src/rpc.rs
Outdated
convert::TryInto, | ||
marker::PhantomData, | ||
}; | ||
use core::convert::TryInto; |
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.
Can we get rid of this import too now because edition 2021?
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.
Turns out we can :)
I can confirm that it works now, thank you! |
Thank you ! |
* Make EventSubscription and FilterEvents Send-able * Cargo fmt * clippy * Remove unused import
Without this, they cannot be used in
tokio::spawn
-like contexts, which require things held across await points to implSend
(because they might be moved across threads between such points).Closes #469