Skip to content

Commit e06bfdf

Browse files
committed
Set last_prune_call outside of persistence block
1 parent 5eeb254 commit e06bfdf

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

lightning-background-processor/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,16 @@ impl BackgroundProcessor {
278278
if let Err(e) = persister.persist_graph(handler.network_graph()) {
279279
log_error!(logger, "Error: Failed to persist network graph, check your disk and permissions {}", e)
280280
}
281-
last_prune_call = Instant::now();
282-
have_pruned = true;
283281
}
284282
if let Some(ref scorer) = scorer {
285283
log_trace!(logger, "Persisting scorer");
286284
if let Err(e) = persister.persist_scorer(&scorer) {
287285
log_error!(logger, "Error: Failed to persist scorer, check your disk and permissions {}", e)
288286
}
289287
}
288+
289+
last_prune_call = Instant::now();
290+
have_pruned = true;
290291
}
291292
}
292293

0 commit comments

Comments
 (0)