Skip to content

Commit

Permalink
Less confusing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Jan 1, 2024
1 parent 01e1e78 commit 3642d3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/listen_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,15 @@ pub async fn sync(ticket: String) -> Result<()> {

let mut last_response = None;
loop {
let req = car_mirror::pull::request(root, last_response, &config, &store, &cache).await?;

let dag_verification = IncrementalDagVerification::new([root], &store, &cache).await?;
tracing::info!(
num_blocks_want = dag_verification.want_cids.len(),
num_blocks_have = dag_verification.have_cids.len(),
"State of transfer"
);
let req = car_mirror::pull::request(root, last_response, &config, &store, &cache).await?;

if req.indicates_finished() {
println!("Done!");
store.inner.put(PRIVATE_ACCESS_KEY, &access_key_bytes)?;
Expand Down

0 comments on commit 3642d3a

Please sign in to comment.