mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-25 06:00:08 +01:00
Make sure pending updates are process when restarting the UpdateStore
This commit is contained in:
parent
8ffdfa72e3
commit
45ae086974
@ -36,6 +36,9 @@ impl<M: 'static, N: 'static> UpdateStore<M, N> {
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user