Skip to content

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.

3 participants