ax(mining): replace prose comment with usage example on ShutdownTimeout

AX Principle 2 — comments as usage examples, not prose descriptions.
The previous comment restated what the constant name already communicates.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 14:05:00 +01:00
parent 8ce93adf11
commit fac2563aa2
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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