From 4afc61cbbb4ba17c514331a59fcfb5b1dfd0f852 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:16:17 +0100 Subject: [PATCH] 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 --- pkg/mining/config_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mining/config_manager.go b/pkg/mining/config_manager.go index 97dfd55..03c79cb 100644 --- a/pkg/mining/config_manager.go +++ b/pkg/mining/config_manager.go @@ -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"` }