Skip to content

Commit d1f6225

Browse files
committed
f correct decay+persist log line
1 parent 15539f1 commit d1f6225

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
@@ -413,9 +413,11 @@ macro_rules! define_run_body {
413413

414414
if $timer_elapsed(&mut last_scorer_persist_call, SCORER_PERSIST_TIMER) {
415415
if let Some(ref scorer) = $scorer {
416-
log_trace!($logger, "Decaying and persisting scorer");
417416
if let Some(duration_since_epoch) = $time_fetch() {
417+
log_trace!($logger, "Decaying and persisting scorer");
418418
scorer.write_lock().decay_liquidity_certainty(duration_since_epoch);
419+
} else {
420+
log_trace!($logger, "Persisting scorer");
419421
}
420422
if let Err(e) = $persister.persist_scorer(&scorer) {
421423
log_error!($logger, "Error: Failed to persist scorer, check your disk and permissions {}", e)

0 commit comments

Comments
 (0)