fix ephemeral handling to not save
Some checks failed
Go / build (push) Has been cancelled

This commit is contained in:
2025-10-10 09:35:15 +01:00
parent 2637f4b85c
commit 075838150d
5 changed files with 89 additions and 4 deletions

View File

@@ -207,6 +207,12 @@ func (l *Listener) HandleEvent(msg []byte) (err error) {
}
}
}
// Check if the event is ephemeral (kinds 20000-29999) and just deliver to subscribers.
if kind.IsEphemeral(env.E.Kind) {
go l.publishers.Deliver(env.E)
return
}
// store the event - use a separate context to prevent cancellation issues
saveCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()