do not start progress at 0 before diff complete (#1999)

* do not start progress at 0 before diff complete

* fix: Test rsync

* don't report progress of 0

* drop initialization value from progress stream

Co-authored-by: BluJ <mogulslayer@gmail.com>
This commit is contained in:
Aiden McClelland
2022-11-29 19:13:32 -07:00
committed by GitHub
parent 71d1418559
commit aafcce871e
4 changed files with 80 additions and 14 deletions

View File

@@ -707,8 +707,9 @@ mod fns {
);
}
let running_rsync =
Rsync::new(src, dst, options).map_err(|e| anyhow::anyhow!("{:?}", e.source))?;
let running_rsync = Rsync::new(src, dst, options)
.await
.map_err(|e| anyhow::anyhow!("{:?}", e.source))?;
let insert_id = {
let mut rsyncs = rsyncs.lock().await;
let next = rsyncs.0 + 1;