ax(node): replace prose comment with usage example on MessageType
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX Principle 2: comments must show HOW with real values, not restate
what the type signature already says.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 17:26:02 +01:00
parent 14019e9693
commit 697394c1f4
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -40,7 +40,8 @@ func IsProtocolVersionSupported(version string) bool {
return false
}
// MessageType defines the type of P2P message.
// msg, err := NewMessage(MsgPing, identity.ID, peer.ID, PingPayload{SentAt: time.Now().UnixMilli()})
// if msg.Type == MsgHandshake { handleHandshake(msg) }
type MessageType string
const (