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

@@ -28,7 +28,7 @@ func Run(
Ctx: ctx,
Config: cfg,
D: db,
publishers: publish.New(NewPublisher()),
publishers: publish.New(NewPublisher(ctx)),
}
addr := fmt.Sprintf("%s:%d", cfg.Listen, cfg.Port)
log.I.F("starting listener on http://%s", addr)