From 653db6563fd396282db3fe4a979a296a499ec7d2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:20:03 +0100 Subject: [PATCH] ax(node): replace prose comment on MinerManager with usage example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX Principle 2 — comments show HOW with real values, not prose descriptions. Co-Authored-By: Charon --- pkg/node/worker.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/node/worker.go b/pkg/node/worker.go index b4544a4..6829bb9 100644 --- a/pkg/node/worker.go +++ b/pkg/node/worker.go @@ -11,8 +11,10 @@ import ( "github.com/adrg/xdg" ) -// MinerManager interface for the mining package integration. -// This allows the node package to interact with mining.Manager without import cycles. +// worker.SetMinerManager(miningManager) +// miner, err := worker.minerManager.StartMiner("xmrig", cfg) +// worker.minerManager.StopMiner("xmrig") +// for _, m := range worker.minerManager.ListMiners() { ... } type MinerManager interface { StartMiner(minerType string, config interface{}) (MinerInstance, error) StopMiner(name string) error