From 57253c4d7f8103bbb40164825fc32dffa9a0f996 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 11:46:38 +0100 Subject: [PATCH] ax(mining): replace prose comment on InstallFromURL with usage example AX Principle 2: comments show HOW with real values, not what the signature already says. Co-Authored-By: Charon --- pkg/mining/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mining/miner.go b/pkg/mining/miner.go index d68c845..95c8012 100644 --- a/pkg/mining/miner.go +++ b/pkg/mining/miner.go @@ -241,7 +241,7 @@ func (b *BaseMiner) Uninstall() error { return os.RemoveAll(b.GetPath()) } -// InstallFromURL handles the generic download and extraction process for a miner. +// if err := b.InstallFromURL("https://github.com/xmrig/xmrig/releases/download/v6.22.1/xmrig-6.22.1-linux-static-x64.tar.gz"); err != nil { return err } func (b *BaseMiner) InstallFromURL(url string) error { tmpfile, err := os.CreateTemp("", b.ExecutableName+"-") if err != nil {