From e06bfdfeb73fe170e277e42a71fb46968e84fc9c Mon Sep 17 00:00:00 2001 From: Jurvis Tan <5944973+jurvis@users.noreply.github.com> Date: Tue, 3 May 2022 15:29:11 -0700 Subject: [PATCH] Set last_prune_call outside of persistence block --- lightning-background-processor/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lightning-background-processor/src/lib.rs b/lightning-background-processor/src/lib.rs index e306aeb3c..107f65f9b 100644 --- a/lightning-background-processor/src/lib.rs +++ b/lightning-background-processor/src/lib.rs @@ -278,8 +278,6 @@ impl BackgroundProcessor { if let Err(e) = persister.persist_graph(handler.network_graph()) { log_error!(logger, "Error: Failed to persist network graph, check your disk and permissions {}", e) } - last_prune_call = Instant::now(); - have_pruned = true; } if let Some(ref scorer) = scorer { log_trace!(logger, "Persisting scorer"); @@ -287,6 +285,9 @@ impl BackgroundProcessor { log_error!(logger, "Error: Failed to persist scorer, check your disk and permissions {}", e) } } + + last_prune_call = Instant::now(); + have_pruned = true; } } -- 2.39.5