mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat(tasks): enable graceful shutdown request via TaskExecutor (#16386)
Signed-off-by: 7suyash7 <suyashnyn1@gmail.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -174,8 +174,10 @@ where
|
||||
{
|
||||
let fut = pin!(fut);
|
||||
tokio::select! {
|
||||
err = tasks => {
|
||||
return Err(err.into())
|
||||
task_manager_result = tasks => {
|
||||
if let Err(panicked_error) = task_manager_result {
|
||||
return Err(panicked_error.into());
|
||||
}
|
||||
},
|
||||
res = fut => res?,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user