From 05fb333686861e35d7c9f2dd5b9bb1b2e1aa59c2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 09:11:34 +0100 Subject: [PATCH] ax(node): replace prose comment with usage example on StopRemoteMiner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX Principle 2 — comments must show HOW with real values, not restate what the type signature already says. Co-Authored-By: Charon --- pkg/node/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/node/controller.go b/pkg/node/controller.go index c31d9a3..187f3f3 100644 --- a/pkg/node/controller.go +++ b/pkg/node/controller.go @@ -177,7 +177,8 @@ func (c *Controller) StartRemoteMiner(peerID, minerType, profileID string, confi return nil } -// StopRemoteMiner requests a remote peer to stop a miner. +// err := ctrl.StopRemoteMiner("abc123def456", "xmrig") +// if err != nil { log("stop failed:", err) } func (c *Controller) StopRemoteMiner(peerID, minerName string) error { identity := c.node.GetIdentity() if identity == nil {