ax(mining): remove prose comment that restates the ErrCircuitOpen declaration

AX Principle 2: comments must show usage examples, not restate what the
type signature already says. The line "ErrCircuitOpen is returned when
the circuit is open" adds zero information over the var declaration
itself. The usage example below it is kept.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 12:30:31 +01:00
parent c20670f062
commit e656a12da7
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -64,7 +64,6 @@ type CircuitBreaker struct {
cacheDuration time.Duration
}
// ErrCircuitOpen is returned when the circuit is open
// if err == ErrCircuitOpen { /* fallback to cached result */ }
var ErrCircuitOpen = NewMiningError(ErrCodeServiceUnavailable, "circuit breaker is open")