From 68074e1d9cbe4f73a77b6d8913759dda44397b01 Mon Sep 17 00:00:00 2001 From: Abdulla Abdurakhmanov Date: Thu, 22 Aug 2024 14:01:04 +0200 Subject: [PATCH] Delay verification update --- src/commands/copy_command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/copy_command.rs b/src/commands/copy_command.rs index 70dc990..e1fb6dc 100644 --- a/src/commands/copy_command.rs +++ b/src/commands/copy_command.rs @@ -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( @@ -383,7 +384,6 @@ async fn redact_upload_file< ); tokio::time::sleep(*delay).await; } - *throttler = throttler.update(Instant::now()); } match stream_redacter .redact_stream(