feat: wire the circuit breaker into the proxy fetch path #74
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 intoEngine.Fetch: short-circuit when open, RecordFailure on UpstreamError, RecordSuccess on 2xx.