remove needlessness async block and await op (#14694)

This commit is contained in:
Pana
2025-02-25 16:53:49 +08:00
committed by GitHub
parent 7267395b11
commit 84ef51f9cc

View File

@@ -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);
}));