From 32290b839b29fb34f97a0fb82bcc2eee350ab301 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 09:15:35 +0100 Subject: [PATCH] ax(node): replace prose comment with usage example on GetRemoteLogs 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 the signature in prose. "GetRemoteLogs requests console logs from a remote miner" added zero information; replaced with a concrete call showing peerID, minerName, lines, and result handling. 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 187f3f3..1e7f7a7 100644 --- a/pkg/node/controller.go +++ b/pkg/node/controller.go @@ -211,7 +211,8 @@ func (c *Controller) StopRemoteMiner(peerID, minerName string) error { return nil } -// GetRemoteLogs requests console logs from a remote miner. +// lines, err := ctrl.GetRemoteLogs("abc123def456", "xmrig", 100) +// if err == nil { log("last log:", lines[len(lines)-1]) } func (c *Controller) GetRemoteLogs(peerID, minerName string, lines int) ([]string, error) { identity := c.node.GetIdentity() if identity == nil {