mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-12 07:58:54 +01:00
perform dump method
This commit is contained in:
parent
7fa3eb1003
commit
6a0231cb28
@ -3,7 +3,7 @@ pub mod index_store;
|
|||||||
pub mod meta_store;
|
pub mod meta_store;
|
||||||
|
|
||||||
use std::convert::{TryFrom, TryInto};
|
use std::convert::{TryFrom, TryInto};
|
||||||
use std::path::Path;
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use error::{IndexResolverError, Result};
|
use error::{IndexResolverError, Result};
|
||||||
@ -351,10 +351,14 @@ where
|
|||||||
|
|
||||||
Ok(TaskResult::Other)
|
Ok(TaskResult::Other)
|
||||||
}
|
}
|
||||||
TaskContent::Dump { path: _ } => Ok(TaskResult::Other),
|
TaskContent::Dump { path } => self.perform_dump(path).await,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async fn perform_dump(&self, path: &PathBuf) -> Result<TaskResult> {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
async fn process_job(&self, job: Job) {
|
async fn process_job(&self, job: Job) {
|
||||||
match job {
|
match job {
|
||||||
Job::Dump { ret, path } => {
|
Job::Dump { ret, path } => {
|
||||||
|
Loading…
Reference in New Issue
Block a user