Skip to content

Commit

Permalink
remove needlessness async block and await op
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana committed Feb 25, 2025
1 parent 4204b99 commit 48d0a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rpc/rpc-eth-api/src/helpers/blocking_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub trait SpawnBlocking: EthApiTypes + Clone + Send + Sync + 'static {
let (tx, rx) = oneshot::channel();
let this = self.clone();
self.io_task_spawner().spawn_blocking(Box::pin(async move {
let res = async move { f(this) }.await;
let res = f(this);
let _ = tx.send(res);
}));

Expand Down

0 comments on commit 48d0a2d

Please sign in to comment.