ax(mining): replace prose comment with usage example on addCliArgs
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

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 17:48:46 +01:00
parent 8695098988
commit f0b4fea2e3
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

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