Commit 411ccbe
committed
Fix race condition in context cancellation check
Use select statement instead of ctx.Err() check to avoid race condition
when checking for context cancellation in the goroutine error handler.
This follows Go best practices for context handling.
Addresses review comment from @yrobla.1 parent c6612a8 commit 411ccbe
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
0 commit comments