Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format
  • Loading branch information
wtdcode committed Feb 29, 2024
commit b7c826bc4c89b29f574f20d16789dc0667b1e56c
6 changes: 1 addition & 5 deletions crates/revm/src/db/ethersdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ impl<M: Middleware> EthersDB<M> {
/// internal utility function to call tokio feature and wait for output
fn block_on<F: core::future::Future>(&self, f: F) -> F::Output {
match Handle::try_current() {
Ok(handle) => {
tokio::task::block_in_place(move || {
handle.block_on(f)
})
}
Ok(handle) => tokio::task::block_in_place(move || handle.block_on(f)),
Err(_) => Builder::new_current_thread()
.enable_all()
.build()
Expand Down