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:
parent
8ce93adf11
commit
fac2563aa2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue