Mining/pkg/database
Claude 8b22e9dda6
ax(database): replace prose interface comments with usage examples
AX Principle 2: comments must show how to call the function with real
values, not restate what the type signature already says. All six
HashrateStore interface methods now carry concrete call-site examples.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 14:22:42 +01:00
..
database.go ax(database): replace prose comment with usage example on isInitialized 2026-04-02 14:19:01 +01:00
database_race_test.go refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00
database_test.go ax(database): rename TestInitialize_Disabled to TestDatabase_Initialize_Bad 2026-04-02 14:20:08 +01:00
hashrate.go ax(database): replace prose comment with usage example on GetAllMinerStats 2026-04-02 14:21:17 +01:00
interface.go ax(database): replace prose interface comments with usage examples 2026-04-02 14:22:42 +01:00
interface_test.go test: Add error path unit tests for context cancellation and cleanup 2025-12-31 13:04:20 +00:00
session.go refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00