ax(mining): replace prose comment with usage example on NodeService struct
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:
parent
ac77e42b6a
commit
fda7c2019c
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue