ax(mining): replace prose comment with usage example on NodeService struct
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX Principle 2 — comments must show HOW with real values, not restate what
the type name already says. Replace the description-style comment with a
concrete two-line call sequence showing construction and route registration.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 14:30:15 +01:00
parent ac77e42b6a
commit fda7c2019c
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -10,7 +10,8 @@ import (
"github.com/gin-gonic/gin"
)
// NodeService handles P2P node-related API endpoints.
// ns, err := NewNodeService()
// ns.SetupRoutes(router.Group("/api/v1/mining"))
type NodeService struct {
nodeManager *node.NodeManager
peerRegistry *node.PeerRegistry