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 <charon@lethean.io>
This commit is contained in:
parent
ccf57565b9
commit
5afb9e98f7
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue