Skip to content

Commit 95d1ec7

Browse files
committed
f correct decay+persist log line
1 parent ff4c7db commit 95d1ec7

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

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

0 commit comments

Comments
 (0)