From b4dc3e69480d8d36e4aee5f06d1941ab417b0f49 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 09:13:26 +0100 Subject: [PATCH] ax(mining): replace prose comment on NewManagerForSimulation with usage example AX Principle 2: comments must show HOW with real values, not restate what the type signature already says. Replaced description prose with a concrete call pattern showing ctx + Config. Co-Authored-By: Charon --- pkg/mining/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mining/manager.go b/pkg/mining/manager.go index e4b099e..b7bc0e3 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -77,8 +77,8 @@ func NewManager() *Manager { return m } -// NewManagerForSimulation creates a manager for simulation mode. -// It skips autostarting real miners and config sync, suitable for UI testing. +// manager := mining.NewManagerForSimulation() +// manager.StartMiner(ctx, "xmrig", &mining.Config{Algo: "rx/0"}) func NewManagerForSimulation() *Manager { m := &Manager{ miners: make(map[string]Miner),