-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Asyncify some functions in EthereumAdapter #5955
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
Conversation
| Box::pin(web3.eth().block_with_txs(BlockId::Hash(block_hash))) | ||
| .compat() | ||
| .from_err() | ||
| .compat() |
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.
| Box::pin(web3.eth().block_with_txs(BlockId::Hash(block_hash))) | |
| .compat() | |
| .from_err() | |
| .compat() | |
| let web3 = web3.clone(); | |
| async move { | |
| web3.eth() | |
| .block_with_txs(BlockId::Hash(block_hash)) | |
| .await | |
| .map_err(Error::from) | |
| } |
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! I am incorporating that into the PR
incrypto32
left a comment
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! There's still some leftover futures01 usage, but we can tackle that later.
|
Yeah, we'll have to make a few more passes over the codebase to get rid of all the futures01 |
fc171fc to
45dda04
Compare
No description provided.