Commit 0281edc
fix(watcher): add delay on success path to prevent busy loop
When RetryWatcher's result channel closes without an error (e.g., after
exhausting internal retries), the outer loop retried immediately with no
delay, causing high CPU usage. Restore 1-second cooldown on success path
to match previous behavior and prevent reconnection storms.
Co-Authored-By: Composer <noreply@cursor.com>1 parent f0b8710 commit 0281edc
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
0 commit comments