Skip to content

Commit

Permalink
Don't send cancellation on failed tx due to slow startup (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbuc committed Nov 16, 2023
1 parent 10e3e80 commit 09c73c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/responder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ where
response,
}) = actions.recv().await
{
let cancel_tx = cancel_tx.clone();
// let cancel_tx = cancel_tx.clone();
let values = self.values.clone();
let senders = self.senders.clone();
tokio::spawn(async move {
Expand All @@ -106,7 +106,7 @@ where

if !reply.failed().is_empty() {
tracing::error!("failed to send funds to some addresses");
cancel_tx.send(()).await.expect("able to send cancellation");
// cancel_tx.send(()).await.expect("able to send cancellation");
}
});
}
Expand Down

0 comments on commit 09c73c7

Please sign in to comment.