Skip to content

Commit 2be28b1

Browse files
committed
Drop addtional loop_exit_check
We previously introduced an additional `loop_exit_check` in background processor. Since all reviewers seemed to be skeptical about its usefulness, we drop it again here.
1 parent 8a36be4 commit 2be28b1

File tree

1 file changed

+0
-7
lines changed
  • lightning-background-processor/src

1 file changed

+0
-7
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,6 @@ macro_rules! define_run_body {
399399
last_forwards_processing_call = $get_timer(cur_batch_delay);
400400
}
401401

402-
// Checke whether to exit the loop again, as some time might have passed since we
403-
// checked above.
404-
if $loop_exit_check {
405-
log_trace!($logger, "Terminating background processor.");
406-
break;
407-
}
408-
409402
// We wait up to 100ms, but track how long it takes to detect being put to sleep,
410403
// see `await_start`'s use below.
411404
let mut await_start = None;

0 commit comments

Comments
 (0)