eventstore: remove useless sanity checking since event fields are already typed.

This commit is contained in:
fiatjaf
2025-08-05 00:04:27 -03:00
parent 7e6a0eb614
commit 17c3d19a98
4 changed files with 0 additions and 23 deletions

View File

@@ -3,7 +3,6 @@ package mmm
import (
"fmt"
"iter"
"math"
"runtime"
"fiatjaf.com/nostr"
@@ -12,11 +11,6 @@ import (
)
func (il *IndexingLayer) ReplaceEvent(evt nostr.Event) error {
// sanity checking
if evt.CreatedAt > math.MaxUint32 || evt.Kind > math.MaxUint16 {
return fmt.Errorf("event with values out of expected boundaries")
}
il.mmmm.writeMutex.Lock()
defer il.mmmm.writeMutex.Unlock()