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

Commits on Sep 22, 2024

  1. fix: update retry logic in getTwitchBadges function

    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 committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    5884673 View commit details
    Browse the repository at this point in the history