From 9e4bb376e819313c7bb8c41f5cdd321bb085a093 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 11:17:57 +0100 Subject: [PATCH] ax(mining): replace prose struct-field comments with usage examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DatabaseConfig field comments restated the type signature in prose (AX §2 violation). Replaced with concrete assignment examples showing real values and edge-case behaviour (0 → defaults to 30). 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 c743100..13e402e 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 { - // Enabled determines if database persistence is active (default: true) + // cfg.Enabled = false // disable hashrate persistence entirely Enabled bool `json:"enabled"` - // RetentionDays is how long to keep historical data (default: 30) + // cfg.RetentionDays = 90 // purge rows older than 90 days (0 → defaults to 30) RetentionDays int `json:"retentionDays,omitempty"` }