From fc79b16f67842ed26667b7403724fa237b3e4232 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 17:34:18 +0100 Subject: [PATCH] ax(mining): replace prose doc comment with usage example on XMRigMiner.Stop AX Principle 2: comments show HOW with real values, not what the signature already says. Co-Authored-By: Charon --- pkg/mining/xmrig_start.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/mining/xmrig_start.go b/pkg/mining/xmrig_start.go index 05847dc..eb1c250 100644 --- a/pkg/mining/xmrig_start.go +++ b/pkg/mining/xmrig_start.go @@ -150,7 +150,8 @@ func (m *XMRigMiner) Start(config *Config) error { return nil } -// Stop terminates the miner process and cleans up the instance-specific config file. +// miner.Stop() +// if err := miner.Stop(); err != nil { log.Printf("stop failed: %v", err) } func (m *XMRigMiner) Stop() error { // Call the base Stop to kill the process if err := m.BaseMiner.Stop(); err != nil {