We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 228ee70 commit 03a0463Copy full SHA for 03a0463
crates/revm/src/db/ethersdb.rs
@@ -34,7 +34,11 @@ impl<M: Middleware> EthersDB<M> {
34
/// internal utility function to call tokio feature and wait for output
35
fn block_on<F: core::future::Future>(&self, f: F) -> F::Output {
36
match Handle::try_current() {
37
- Ok(handle) => handle.block_on(f),
+ Ok(handle) => {
38
+ tokio::task::block_in_place(move || {
39
+ handle.block_on(f)
40
+ })
41
+ }
42
Err(_) => Builder::new_current_thread()
43
.enable_all()
44
.build()
0 commit comments