ax(node): replace prose comment with usage example on GetRemoteLogs
Some checks failed
Test / test (push) Waiting to run
Security Scan / security (push) Has been cancelled

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 <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 09:15:35 +01:00
parent 546d97ae6a
commit 32290b839b
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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 {