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:
parent
a6106461b8
commit
4afc61cbbb
1 changed files with 2 additions and 2 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue