ax(node): remove prose comment from Transport.Start
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

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 <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 17:31:52 +01:00
parent ccf57565b9
commit 5afb9e98f7
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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)