ax(mining): rename cfg to configuration in DatabaseConfig field comments

AX Principle 1: predictable names over short names.
Usage-example comments inside DatabaseConfig used the abbreviation
cfg; renamed to configuration so the inline examples teach the full,
unambiguous name.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 14:16:17 +01:00
parent a6106461b8
commit 4afc61cbbb
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -22,9 +22,9 @@ type MinerAutostartConfig struct {
// DatabaseConfig{Enabled: true, RetentionDays: 30}
type DatabaseConfig struct {
// cfg.Enabled = false // disable hashrate persistence entirely
// configuration.Enabled = false // disable hashrate persistence entirely
Enabled bool `json:"enabled"`
// cfg.RetentionDays = 90 // purge rows older than 90 days (0 → defaults to 30)
// configuration.RetentionDays = 90 // purge rows older than 90 days (0 → defaults to 30)
RetentionDays int `json:"retentionDays,omitempty"`
}