ax(node): replace prose comment with usage example on StopRemoteMiner
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX Principle 2 — comments must show HOW with real values, not restate
what the type signature already says.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 09:11:34 +01:00
parent 8066610192
commit 05fb333686
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

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