implement the snapshots on demand

This commit is contained in:
Tamo 2023-09-11 11:00:05 +02:00
parent e9b62aacb3
commit e8c9367686
6 changed files with 144 additions and 0 deletions

View file

@ -156,6 +156,10 @@ impl Server {
self.service.post("/dumps", json!(null)).await
}
pub async fn create_snapshot(&self) -> (Value, StatusCode) {
self.service.post("/snapshots", json!(null)).await
}
pub async fn index_swap(&self, value: Value) -> (Value, StatusCode) {
self.service.post("/swap-indexes", value).await
}