perform dump method

This commit is contained in:
ad hoc 2022-05-17 17:55:47 +02:00
parent 7fa3eb1003
commit 6a0231cb28
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -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 } => {