Skip to content

Commit

Permalink
Only set value once
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Dec 8, 2023
1 parent 3e3c074 commit b1b571c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscription_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b1b571c

Please sign in to comment.