ax(node): replace prose comment with usage example on GetRemoteStats
Some checks failed
Security Scan / security (push) Successful in 31s
Test / test (push) Has been cancelled

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 08:54:44 +01:00
parent 0c7546650a
commit 0979fd1aea
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -111,7 +111,8 @@ func (c *Controller) sendRequest(peerID string, msg *Message, timeout time.Durat
}
}
// GetRemoteStats requests miner statistics from a remote peer.
// stats, err := ctrl.GetRemoteStats("abc123def456")
// if err == nil { log("miners:", len(stats.Miners)) }
func (c *Controller) GetRemoteStats(peerID string) (*StatsPayload, error) {
identity := c.node.GetIdentity()
if identity == nil {