ax(mining): replace NewManager prose 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. Replace "creates a new miner manager" prose
with a concrete call-site example showing manager lifecycle.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 08:56:15 +01:00
parent 28dfe3f31e
commit 2b2b89f158
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -62,7 +62,8 @@ func (m *Manager) emitEvent(eventType EventType, data interface{}) {
var _ ManagerInterface = (*Manager)(nil)
// NewManager creates a new miner manager and autostarts miners based on config.
// manager := mining.NewManager()
// defer manager.Stop()
func NewManager() *Manager {
m := &Manager{
miners: make(map[string]Miner),