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:
parent
c20670f062
commit
e656a12da7
1 changed files with 0 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue