From 2b2b89f1580daa7cfa70380ec7623239b0702189 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 08:56:15 +0100 Subject: [PATCH] ax(mining): replace NewManager prose comment with usage example 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 --- pkg/mining/manager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/mining/manager.go b/pkg/mining/manager.go index c2854cf..3b8a1f2 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -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),