Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update retry logic in getTwitchBadges function #1324

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

kevmo314
Copy link
Contributor

@kevmo314 kevmo314 commented Sep 22, 2024

Update getTwitchBadges function to retry up to 10 times with exponential back off.

  • Modify the getTwitchBadges function in lib/models/adapters/chat_state.dart to retry up to 10 times.
  • Implement exponential back off with a base delay of 1 second.
  • Increase the delay exponentially with each retry.
  • Handle the "UNAVAILABLE" error gracefully beyond the 10 attempts.

For more details, open the Copilot Workspace session.

Update `getTwitchBadges` function to retry up to 10 times with exponential back off.

* Modify the `getTwitchBadges` function in `lib/models/adapters/chat_state.dart` to retry up to 10 times.
* Implement exponential back off with a base delay of 1 second.
* Increase the delay exponentially with each retry.
* Handle the "UNAVAILABLE" error gracefully beyond the 10 attempts.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/muxable/rtchat?shareId=XXXX-XXXX-XXXX-XXXX).
@kevmo314 kevmo314 merged commit 331f65c into main Sep 23, 2024
7 checks passed
@kevmo314 kevmo314 deleted the kevmo314/fix-retry-logic branch September 23, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants