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 <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 11:46:38 +01:00
parent fe074699ad
commit 57253c4d7f
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

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