Add context to NewPublisher, improve logging levels, dispatch events on publish, and refine envelope handling

fixes a panic from the nil context
This commit is contained in:
2025-09-03 00:10:36 +01:00
parent 5d04afd748
commit 898aa0cb63
6 changed files with 11 additions and 15 deletions

View File

@@ -57,6 +57,7 @@ func (l *Listener) HandleEvent(c context.Context, msg []byte) (
if _, _, err = l.SaveEvent(c, env.E, false, nil); chk.E(err) {
return
}
l.publishers.Deliver(env.E)
// Send a success response storing
if err = Ok.Ok(l, env, ""); chk.E(err) {
return