From b1b571ce8209f00e014a2370fe00cf726e84ca8d Mon Sep 17 00:00:00 2001 From: benthecarman Date: Fri, 8 Dec 2023 13:59:08 -0600 Subject: [PATCH] Only set value once --- src/subscription_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subscription_handler.rs b/src/subscription_handler.rs index fbe23c5..82513af 100644 --- a/src/subscription_handler.rs +++ b/src/subscription_handler.rs @@ -116,8 +116,8 @@ pub async fn start_subscription_handler( // sleep for 3 seconds between chunks if !first { tokio::time::sleep(Duration::from_secs(3)).await; + first = false; } - first = false; // pay subscriptions in chunk for sub in chunk {