ax(node): replace prose comment with usage example in NewController
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX-2: comments must show concrete usage, not restate what the code does.
The "Register message handler for responses" prose comment was replaced
with a usage-example comment that shows the actual call pattern.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 16:18:23 +01:00
parent a96af6adb2
commit 956f8de643
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -32,7 +32,7 @@ func NewController(node *NodeManager, peers *PeerRegistry, transport *Transport)
pendingRequests: make(map[string]chan *Message),
}
// Register message handler for responses
// transport.OnMessage(controller.handleResponse) // registered in NewController; routes replies to pending request channels
transport.OnMessage(controller.handleResponse)
return controller