ax(ueps): remove duplicate usage-example comment on ParsedPacket
AX Principle 2 — comments as usage examples, not restatements. ParsedPacket carried the identical dispatch example twice: once above the type and again above ReadAndVerify. The type-level copy added no new information; replaced with a field-reference note that describes what the struct exposes without duplicating the call-site example. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
383c24d120
commit
fe074699ad
1 changed files with 1 additions and 2 deletions
|
|
@ -17,8 +17,7 @@ var errMissingHMAC = packetError("UEPS packet missing HMAC signature")
|
|||
// if err == errIntegrityViolation { /* HMAC mismatch — threat score incremented */ }
|
||||
var errIntegrityViolation = packetError("integrity violation: HMAC mismatch (ThreatScore +100)")
|
||||
|
||||
// packet, err := ueps.ReadAndVerify(bufio.NewReader(conn), sharedSecret)
|
||||
// if err == nil { dispatch(packet.Header.IntentID, packet.Header.ThreatScore, packet.Payload) }
|
||||
// packet.Header.IntentID, packet.Header.ThreatScore, packet.Payload — fields populated after successful ReadAndVerify
|
||||
type ParsedPacket struct {
|
||||
Header UEPSHeader
|
||||
Payload []byte
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue