ax(mining): replace prose Execute comment with usage example
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX Principle 2: comments show HOW with real values, not WHAT the
signature already says.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 08:28:45 +01:00
parent 115672cdfd
commit 588e6447bb
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -88,7 +88,7 @@ func (cb *CircuitBreaker) State() CircuitState {
return cb.state
}
// Execute runs the given function with circuit breaker protection
// result, err := cb.Execute(func() (interface{}, error) { return fetchStats(ctx) })
func (cb *CircuitBreaker) Execute(fn func() (interface{}, error)) (interface{}, error) {
// Check if we should allow this request
if !cb.allowRequest() {