mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08: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;
|
||||
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
use std::path::Path;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::Arc;
|
||||
|
||||
use error::{IndexResolverError, Result};
|
||||
@ -351,10 +351,14 @@ where
|
||||
|
||||
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) {
|
||||
match job {
|
||||
Job::Dump { ret, path } => {
|
||||
|
Loading…
Reference in New Issue
Block a user