Skip to content

Commit

Permalink
Delay verification update
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Aug 22, 2024
1 parent f69e55a commit 68074e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/copy_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ async fn redact_upload_file<

if !supported_redacters.is_empty() {
if let Some(ref mut throttler) = redacter_throttler {
*throttler = throttler.update(Instant::now());
let delay = throttler.delay();
if delay.as_millis() > 0 {
bar.println(
Expand All @@ -383,7 +384,6 @@ async fn redact_upload_file<
);
tokio::time::sleep(*delay).await;
}
*throttler = throttler.update(Instant::now());
}
match stream_redacter
.redact_stream(
Expand Down

0 comments on commit 68074e1

Please sign in to comment.