feat: wire the circuit breaker into the proxy fetch path #74

Closed
opened 2026-07-02 00:20:17 +10:00 by unkinben · 0 comments
Owner

internal/proxy/circuit.go (+ tests) implements IsOpen/RecordFailure/RecordSuccess but nothing ever calls them — a failing upstream is still hit on every request. Wire it into Engine.Fetch: short-circuit when open, RecordFailure on UpstreamError, RecordSuccess on 2xx.

`internal/proxy/circuit.go` (+ tests) implements IsOpen/RecordFailure/RecordSuccess but nothing ever calls them — a failing upstream is still hit on every request. Wire it into `Engine.Fetch`: short-circuit when open, RecordFailure on UpstreamError, RecordSuccess on 2xx.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#74