ax(mining): replace prose doc comment with usage example on XMRigMiner.Stop
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:34:18 +01:00
parent 0c2802a882
commit fc79b16f67
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -150,7 +150,8 @@ func (m *XMRigMiner) Start(config *Config) error {
return nil
}
// Stop terminates the miner process and cleans up the instance-specific config file.
// miner.Stop()
// if err := miner.Stop(); err != nil { log.Printf("stop failed: %v", err) }
func (m *XMRigMiner) Stop() error {
// Call the base Stop to kill the process
if err := m.BaseMiner.Stop(); err != nil {