mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 08:08:15 -05:00
remove needlessness async block and await op (#14694)
This commit is contained in:
@@ -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);
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user