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

@@ -32,8 +32,7 @@ func createTestHub(t testing.TB) (*Hub, *pbtests.TestApp, error) {
if err != nil {
return nil, nil, err
}
h, err := NewHub(testApp)
return h, testApp, err
return NewHub(testApp), testApp, err
}
// cleanupTestHub stops background system goroutines before tearing down the app.