fix(hub): add onAfterBootstrapAndMigrations to properly queue fns after migrations

also remove error return from NewHub and improve comments in hub.go
This commit is contained in:
henrygd
2026-03-20 19:32:59 -04:00
parent be70840609
commit ff36138229
4 changed files with 38 additions and 23 deletions

View File

@@ -28,8 +28,8 @@ func main() {
}
baseApp := getBaseApp()
h, _ := hub.NewHub(baseApp)
if err := h.StartHub(); err != nil {
hub := hub.NewHub(baseApp)
if err := hub.StartHub(); err != nil {
log.Fatal(err)
}
}