RC1 recovery-hub-start: the recovery module starts its event hub with Start and reads its seat list through OnAllHeard

Builds: design 47 H §836 (issue 1984 AC-836h)
This commit is contained in:
2026-11-27 02:59:15 +01:00
parent 25c4c52396
commit 174dead676
@@ -181,7 +181,8 @@ func run(ctx context.Context, getenv func(string) string, logOut io.Writer) erro
// are answered (A-179, A-186): registered before the hub starts, read again once its events are live.
seats := seatlist.NewPart("recovery")
seats.Follow(seatlist.ProcessBus(conn.Call, hub), nil, logger.Printf)
if err := hub.StartUntilBound(ctx, js, account, nil, seats.EventsLive); err != nil {
hub.OnAllHeard(seats.EventsLive)
if err := hub.Start(ctx, js, account); err != nil {
logger.Printf("the consumer %s is not bound yet (%v): bound once the bus makes it, the seat list read then", account.EventConsumerName(), err)
}
defer hub.Stop()