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:
parent
fe074699ad
commit
57253c4d7f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue