From 5afb9e98f78f806d78368249e84deff1fc8cd798 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 17:31:52 +0100 Subject: [PATCH] ax(node): remove prose comment from Transport.Start Comment restated what the function does in prose rather than showing a concrete usage example, violating AX principle 2 (comments as usage examples). The usage example on the preceding line is sufficient. Co-Authored-By: Charon --- pkg/node/transport.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/node/transport.go b/pkg/node/transport.go index 5f600eb..727b7d6 100644 --- a/pkg/node/transport.go +++ b/pkg/node/transport.go @@ -215,7 +215,6 @@ func NewTransport(node *NodeManager, registry *PeerRegistry, config TransportCon } // if err := transport.Start(); err != nil { return err } -// Listens on t.config.ListenAddr (default ":9091") for incoming WebSocket connections. func (transport *Transport) Start() error { serveMux := http.NewServeMux() serveMux.HandleFunc(transport.config.WSPath, transport.handleWSUpgrade)