This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Commit 38bf5e9
fix: cancel in-flight GetCircularDependencies request when GetGraph fails
Derive a cancellable context at the top of fetchGraphWithCircularDeps and
use defer cancel() so that the in-flight HTTP request to the circular-
dependencies API endpoint is aborted as soon as GetGraph returns an error,
avoiding wasted network bandwidth and API quota.
Fixes #78
Co-Authored-By: Grey Newell <greyshipscode@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: claude[bot] <claude[bot]@users.noreply.github.com>1 parent 9f3b5fd commit 38bf5e9
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
0 commit comments