From d6c684df4c219377d2cabb07b635e079afae4c8c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 09:24:36 +0100 Subject: [PATCH] ax(mining): replace prose comment on StopMiner 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 what the signature already says. Prose restating the method signature deleted; concrete call examples with realistic miner names substituted. Co-Authored-By: Charon --- pkg/mining/manager.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/mining/manager.go b/pkg/mining/manager.go index 5e06d48..3fa8158 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -405,9 +405,8 @@ func (m *Manager) updateMinerConfig(minerType string, autostart bool, config *Co }) } -// StopMiner stops a running miner and removes it from the manager. -// If the miner is already stopped, it will still be removed from the manager. -// The context can be used to cancel the operation. +// manager.StopMiner(ctx, "xmrig/monero") +// manager.StopMiner(ctx, "ttminer/rtx4090") // still removes if already stopped func (m *Manager) StopMiner(ctx context.Context, name string) error { // Check for cancellation before acquiring lock select {