Skip to content

Commit b59b268

Browse files
committed
f correct decay+persist log line
1 parent de4dfb5 commit b59b268

File tree

1 file changed

+3
-1
lines changed
  • lightning-background-processor/src

1 file changed

+3
-1
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,11 @@ macro_rules! define_run_body {
400400

401401
if $timer_elapsed(&mut last_scorer_persist_call, SCORER_PERSIST_TIMER) {
402402
if let Some(ref scorer) = $scorer {
403-
log_trace!($logger, "Decaying and persisting scorer");
404403
if let Some(duration_since_epoch) = $time_fetch() {
404+
log_trace!($logger, "Decaying and persisting scorer");
405405
scorer.write_lock().decay_liquidity_certainty(duration_since_epoch);
406+
} else {
407+
log_trace!($logger, "Persisting scorer");
406408
}
407409
if let Err(e) = $persister.persist_scorer(&scorer) {
408410
log_error!($logger, "Error: Failed to persist scorer, check your disk and permissions {}", e)

0 commit comments

Comments
 (0)