From 588e6447bbac91cbf1d60492c02c96475d87a53a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 08:28:45 +0100 Subject: [PATCH] ax(mining): replace prose Execute comment with usage example AX Principle 2: comments show HOW with real values, not WHAT the signature already says. Co-Authored-By: Charon --- pkg/mining/circuit_breaker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mining/circuit_breaker.go b/pkg/mining/circuit_breaker.go index b3fb8bc..2dd3ba7 100644 --- a/pkg/mining/circuit_breaker.go +++ b/pkg/mining/circuit_breaker.go @@ -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() {