Skip to content

Commit

Permalink
Fix one off error
Browse files Browse the repository at this point in the history
  • Loading branch information
pigmej committed Oct 7, 2024
1 parent 4ca3e2c commit 5edafe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/partial_quicksync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ pub fn partial_restore(
.with_context(|| format!("removing {}", source_db_path_zst.display()))?;

Check warning on line 193 in src/partial_quicksync.rs

View check run for this annotation

Codecov / codecov/patch

src/partial_quicksync.rs#L191-L193

Added lines #L191 - L193 were not covered by tests
}

println!("[{idx}/{total}] Restoring from {} to {}...", p.from, p.to);
let current_idx = idx + 1;
println!("[{current_idx}/{total}] Restoring from {} to {}...", p.from, p.to);
let start = Instant::now();
conn
.execute_batch(&restore_string)
Expand All @@ -202,7 +203,7 @@ pub fn partial_restore(

let duration = start.elapsed();
println!(
"[{idx}/{total}] Restored {} to {} in {:?}",
"[{current_idx}/{total}] Restored {} to {} in {:?}",
p.from, p.to, duration
);

Expand Down

0 comments on commit 5edafe1

Please sign in to comment.