fix: remove ctrl handling (#1252)

This commit is contained in:
Matthias Seitz
2023-02-09 19:04:13 +01:00
committed by GitHub
parent ebd5d3c1a2
commit 19b4beb72c

View File

@ -142,10 +142,9 @@ impl Command {
// Run pipeline
info!(target: "reth::cli", "Starting sync pipeline");
tokio::select! {
res = pipeline.run(db.clone()) => res?,
_ = tokio::signal::ctrl_c() => {},
};
pipeline.run(db.clone()).await?;
// TODO: this is where we'd handle graceful shutdown by listening to ctrl-c
if !self.network.no_persist_peers {
dump_peers(self.network.peers_file.as_ref(), network).await?;