ax(mining): replace prose comment with usage example on addCliArgs
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
8695098988
commit
f0b4fea2e3
1 changed files with 2 additions and 1 deletions
|
|
@ -166,7 +166,8 @@ func (m *XMRigMiner) Stop() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// addCliArgs is a helper to append command line arguments based on the config.
|
||||
// args := []string{"--log-file", logPath}
|
||||
// addCliArgs(&Config{Pool: "pool.lthn.io:3333", Wallet: "addr", Threads: 4, TLS: true}, &args)
|
||||
func addCliArgs(config *Config, args *[]string) {
|
||||
if config.Pool != "" {
|
||||
*args = append(*args, "-o", config.Pool)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue