From 2a43c0a39f37f2e643c25d9a7ffcf1e0ca166fb0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 10:41:49 +0100 Subject: [PATCH] ax(mining): replace prose comment on UninstallMiner with usage examples 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 function does. "stops, uninstalls, and removes" restates the signature — replaced with concrete call examples showing both miner types. 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 bb4ed7f..2cb43d4 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -325,8 +325,8 @@ func (m *Manager) StartMiner(ctx context.Context, minerType string, config *Conf return miner, nil } -// UninstallMiner stops, uninstalls, and removes a miner's configuration. -// The context can be used to cancel the operation. +// manager.UninstallMiner(ctx, "xmrig") // stops all xmrig instances and removes config +// manager.UninstallMiner(ctx, "ttminer") // stops all ttminer instances and removes config func (m *Manager) UninstallMiner(ctx context.Context, minerType string) error { // Check for cancellation before acquiring lock select {