From 45ae0869746219e7636c4ae896a51e014ad13464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 9 Nov 2020 17:33:07 +0100 Subject: [PATCH] Make sure pending updates are process when restarting the UpdateStore --- src/update/update_store.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/update/update_store.rs b/src/update/update_store.rs index 4723f0b68..de07f1e21 100644 --- a/src/update/update_store.rs +++ b/src/update/update_store.rs @@ -36,6 +36,9 @@ impl UpdateStore { let processed_meta = env.create_database(Some("processed-meta"))?; let (notification_sender, notification_receiver) = crossbeam_channel::bounded(1); + // Send a first notification to trigger the process. + let _ = notification_sender.send(()); + let update_store = Arc::new(UpdateStore { env, pending,