snapshot batch handler

This commit is contained in:
ad hoc 2022-05-23 16:30:06 +02:00
parent 8743d73973
commit 7b47e4e87a
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
6 changed files with 39 additions and 7 deletions

View file

@ -38,7 +38,7 @@ impl SnapshotService {
meta_env_size: self.meta_env_size,
index_size: self.index_size,
};
self.scheduler.write().await.register_snapshot(snapshot_job);
self.scheduler.write().await.schedule_snapshot(snapshot_job);
sleep(self.snapshot_period).await;
}
}