Commit 65c4fa0
committed
fix: handle onError in non-restart path for noWatch sync
Address review feedback: when RestartOnError is false (noWatch),
add an else block to listen for onError and onDone channels.
Previously, these channels went unlistened when noWatch was true,
which could cause goroutine leaks.
Signed-off-by: rvasikarla <rvasikarla@splunk.com>1 parent cc6d51c commit 65c4fa0
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
229 | 246 | | |
230 | 247 | | |
231 | 248 | | |
| |||
0 commit comments