Skip to content

Commit

Permalink
chore: deal with runtime issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Feb 21, 2025
1 parent 100877d commit e7b54e0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/core/src/node/inner/in_memory_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,14 +475,8 @@ impl InMemoryNodeInner {
if let ExecutionResult::Halt { reason } = result.result {
let reason_clone = reason.clone();

let halt_error = tokio::runtime::Handle::current().block_on(async {
tokio::task::spawn_blocking(move || {
tokio::task::block_in_place(|| {
futures::executor::block_on(reason_clone.to_halt_error())
})
})
.await
.expect("spawn_blocking failed")
let halt_error = tokio::task::block_in_place(|| {
futures::executor::block_on(reason_clone.to_halt_error())
});

print_execution_error(&halt_error, Some(&l2_tx));
Expand Down

0 comments on commit e7b54e0

Please # to comment.