From 956f8de6432cdbdb6ef4d2fd0d6b2f83f957b585 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 16:18:23 +0100 Subject: [PATCH] ax(node): replace prose comment with usage example in NewController 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 --- pkg/node/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/node/controller.go b/pkg/node/controller.go index f4ad02f..5c7065c 100644 --- a/pkg/node/controller.go +++ b/pkg/node/controller.go @@ -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