Skip to content

Commit

Permalink
TimedMutex - don't return after exceeded timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel committed Sep 10, 2024
1 parent 09d3a02 commit bc4e7e5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/payment/src/timeout_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ impl TimedMutex {
match tokio::time::timeout(Duration::from_secs(10), receiver.recv()).await {
Err(_) => {
log::warn!("[TimedMutex] Long running task: {task_name}!");
counter += 1;
// five minutes
if counter > 30 {
return;
}
}
Ok(None) => log::warn!("[TimedMutex] Unexpected mpsc close."),
Ok(Some(TimedMutexTaskMessage::Finish)) => break,
Expand Down

0 comments on commit bc4e7e5

Please sign in to comment.