ax(mining): replace prose comment on PerformanceMetrics with usage example
Some checks failed
Test / test (push) Waiting to run
Security Scan / security (push) Has been cancelled

AX-2 violation: comment restated the type name rather than showing a
concrete usage example. Replaced with a call site example showing how
to call GetStats and access the Hashrate field.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 10:46:42 +01:00
parent 28345a7d87
commit b28d0bd12f
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -243,7 +243,8 @@ func isValidAlgo(algo string) bool {
return true
}
// PerformanceMetrics represents the performance metrics for a miner.
// metrics, err := miner.GetStats(ctx)
// if metrics.Hashrate > 0 { log.Printf("%.2f H/s", float64(metrics.Hashrate)) }
type PerformanceMetrics struct {
Hashrate int `json:"hashrate"`
Shares int `json:"shares"`