load router from context in mock module

This commit is contained in:
Joel Wetzell
2026-02-05 20:20:00 -06:00
parent b095419b6e
commit 8f5091cf9b
2 changed files with 23 additions and 16 deletions

View File

@@ -127,6 +127,7 @@ func (r *Router) Run(ctx context.Context) {
r.moduleWait.Go(func() {
err := moduleInstance.Run(contextWithRouter)
if err != nil {
// TODO(jwetzell): handle module run errors better
r.logger.Error("error encountered running module", "error", err)
}
})