Add an `optional_vec` TLV format which makes sense, unlike vec_type
[rust-lightning] / lightning-background-processor / src / lib.rs
index ac3ea724c0bbac4ab86e8440841f107734b99a74..f64f1e7651effd4f0ddf229c23b89ee40ea3bb7c 100644 (file)
@@ -349,9 +349,9 @@ macro_rules! define_run_body {
                                                log_error!($logger, "Error: Failed to persist network graph, check your disk and permissions {}", e)
                                        }
 
-                                       last_prune_call = $get_timer(NETWORK_PRUNE_TIMER);
                                        have_pruned = true;
                                }
+                               last_prune_call = $get_timer(NETWORK_PRUNE_TIMER);
                        }
 
                        if $timer_elapsed(&mut last_scorer_persist_call, SCORER_PERSIST_TIMER) {