Skip to content

Commit

Permalink
Add a sleep that will cause the stress test to not exceed IoT Core's …
Browse files Browse the repository at this point in the history
…aggregate limit on publish operations (#331)
  • Loading branch information
bretambrose authored Oct 26, 2022
1 parent a7f9a91 commit 922f917
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public static void main(String[] args) {

if (count % PROGRESS_OP_COUNT == 0) {
System.out.println(String.format("(Main Thread) Message publish count: %d", count));
Thread.sleep(10); // this should keep the aggregate publish rate under 10K/s
}
}

Expand Down

0 comments on commit 922f917

Please sign in to comment.