ax(node): replace prose comment on MessageHandler with usage example
AX Principle 2: comments show HOW with real values, not WHAT the type does. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
28cbd4491b
commit
ac3c869684
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ func DefaultTransportConfig() TransportConfig {
|
|||
}
|
||||
}
|
||||
|
||||
// MessageHandler processes incoming messages.
|
||||
// transport.OnMessage(func(conn *PeerConnection, msg *Message) { worker.HandleMessage(conn, msg) })
|
||||
type MessageHandler func(conn *PeerConnection, msg *Message)
|
||||
|
||||
// MessageDeduplicator tracks seen message IDs to prevent duplicate processing
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue