From fac2563aa24569fd0adf8249759e83de0c7d630f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:05:00 +0100 Subject: [PATCH] ax(mining): replace prose comment with usage example on ShutdownTimeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX Principle 2 — comments as usage examples, not prose descriptions. The previous comment restated what the constant name already communicates. Co-Authored-By: Charon --- pkg/mining/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mining/manager.go b/pkg/mining/manager.go index b4d7ead..a47b6dd 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -697,7 +697,7 @@ func (m *Manager) GetMinerHashrateHistory(name string) ([]HashratePoint, error) return miner.GetHashrateHistory(), nil } -// ShutdownTimeout is the maximum time to wait for goroutines during shutdown +// ctx, cancel := context.WithTimeout(context.Background(), ShutdownTimeout) const ShutdownTimeout = 10 * time.Second // defer manager.Stop() // safe in main() or test cleanup; subsequent calls are no-ops