Skip to content

Commit

Permalink
don't crash on failed task
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Dec 10, 2024
1 parent 9241970 commit 449d49b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/core/src/spammer/spammer_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ where
.execute_spam(trigger, &payloads, sent_tx_callback.clone())
.await?;
for task in spam_tasks {
task.await
.map_err(|e| ContenderError::with_err(e, "spam task failed"))?;
let res = task.await;
if let Err(e) = res {
eprintln!("spam task failed: {:?}", e);
}
}
tick += 1;
}
Expand Down

0 comments on commit 449d49b

Please sign in to comment.