ax(node): replace prose comment with usage example on GetRemoteLogs
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:
parent
546d97ae6a
commit
32290b839b
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue