mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Merge --schedule-snapshot and --snapshot-interval-sec options
This commit is contained in:
parent
12c3d432f9
commit
c4aa5cc7d0
5 changed files with 123 additions and 31 deletions
|
@ -1,5 +1,6 @@
|
|||
use std::time::Duration;
|
||||
|
||||
use meilisearch::option::ScheduleSnapshot;
|
||||
use meilisearch::Opt;
|
||||
use tokio::time::sleep;
|
||||
|
||||
|
@ -36,8 +37,7 @@ async fn perform_snapshot() {
|
|||
|
||||
let options = Opt {
|
||||
snapshot_dir: snapshot_dir.path().to_owned(),
|
||||
snapshot_interval_sec: 1,
|
||||
schedule_snapshot: true,
|
||||
schedule_snapshot: ScheduleSnapshot::Enabled(1),
|
||||
..default_settings(temp.path())
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue