cleanup: remove unnecessary StoreProgress clone()
This commit is contained in:
parent
7e25b9aaaa
commit
6eff8dec4f
@ -760,7 +760,7 @@ impl DataStore {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
#[derive(Debug, Default)]
|
||||
/// Tracker for progress of operations iterating over `Datastore` contents.
|
||||
pub struct StoreProgress {
|
||||
/// Completed groups
|
||||
|
@ -462,7 +462,7 @@ pub async fn pull_group(
|
||||
let result = pull_snapshot_from(worker, reader, tgt_store.clone(), &snapshot, downloaded_chunks.clone()).await;
|
||||
|
||||
progress.done_snapshots = pos as u64 + 1;
|
||||
worker.log(format!("percentage done: {}", progress.clone()));
|
||||
worker.log(format!("percentage done: {}", progress));
|
||||
|
||||
result?; // stop on error
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user