Commit 331f65c
authored
fix: update retry logic in getTwitchBadges function (#1324)
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).1 parent 55faf8a commit 331f65c
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
| |||
0 commit comments