summaryrefslogtreecommitdiffstats
path: root/src/filestore/staging.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-10-28 17:56:19 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-10-28 17:56:19 +0100
commit664b90cd8c715414f51ec411ae4fa90b2f997a46 (patch)
treece34241d5346d954eb9519fb85d799396cf4e621 /src/filestore/staging.rs
parentae08fc6d8fcb75ddd13ae20361baf66e842e1de3 (diff)
Make file store able to report progress
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/filestore/staging.rs')
-rw-r--r--src/filestore/staging.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs
index 6ef8cea..86042f3 100644
--- a/src/filestore/staging.rs
+++ b/src/filestore/staging.rs
@@ -1,6 +1,7 @@
use std::path::Path;
use std::path::PathBuf;
use anyhow::Result;
+use indicatif::ProgressBar;
use crate::filestore::util::FileStoreImpl;
@@ -8,8 +9,8 @@ use crate::filestore::util::FileStoreImpl;
pub struct StagingStore(pub (in crate::filestore) FileStoreImpl);
impl StagingStore {
- pub fn load(root: &Path) -> Result<Self> {
- FileStoreImpl::load(root).map(StagingStore)
+ pub fn load(root: &Path, progress: ProgressBar) -> Result<Self> {
+ FileStoreImpl::load(root, progress).map(StagingStore)
}
}