Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lightning-background-processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,6 @@ where
last_forwards_processing_call = sleeper(cur_batch_delay);
}
if should_break {
log_trace!(logger, "Terminating background processor.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think I liked the previous behavior (logging this when initiating the shutdown process) a bit better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it changed. We are still logging before we do the final persist round. The only difference is logging before or after the break.

break;
}

Expand Down Expand Up @@ -819,7 +818,6 @@ where
false
};
if should_break {
log_trace!(logger, "Terminating background processor.");
break;
}
if channel_manager.get_cm().get_and_clear_needs_persistence() {
Expand Down Expand Up @@ -1031,6 +1029,7 @@ where
last_sweeper_call = sleeper(SWEEPER_TIMER);
}
}
log_trace!(logger, "Terminating background processor.");

// After we exit, ensure we persist the ChannelManager one final time - this avoids
// some races where users quit while channel updates were in-flight, with
Expand Down