mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: spawn pipeline future to blocking pool (#1418)
This commit is contained in:
@ -175,7 +175,7 @@ impl Command {
|
||||
// Run pipeline
|
||||
let (rx, tx) = tokio::sync::oneshot::channel();
|
||||
info!(target: "reth::cli", "Starting sync pipeline");
|
||||
ctx.task_executor.spawn_critical("pipeline task", async move {
|
||||
ctx.task_executor.spawn_critical_blocking("pipeline task", async move {
|
||||
let res = pipeline.run(db.clone()).await;
|
||||
let _ = rx.send(res);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user