Performant event serialization. Update README.

This commit is contained in:
Jay
2026-04-20 22:59:28 -04:00
parent b545f9370f
commit 62aeef4eaf
5 changed files with 72 additions and 43 deletions
+1 -4
View File
@@ -47,10 +47,7 @@ func ValidateStructure(e Event) error {
// ValidateID recomputes the event ID and verifies it matches the stored ID field.
func ValidateID(e Event) error {
computedID, err := GetID(e)
if err != nil {
return errors.FailedIDComp
}
computedID := GetID(e)
if e.ID == "" {
return errors.NoEventID
}