Skip to content

Commit

Permalink
fix: Reset failure count after successful poll (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeesha authored Oct 27, 2024
1 parent d361c3f commit 6dfc8b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk-node/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class Service {
while (this.polling && failureCount < MAX_CONSECUTIVE_POLL_FAILURES) {
try {
await this.pollIteration();
failureCount = 0;
} catch (e) {
log("Failed poll iteration", e);
failureCount++;
Expand Down

0 comments on commit 6dfc8b2

Please sign in to comment.