B1 hub-start-alone: the builder starts its hub with Start alone
Builds: design 47 H2b §836 1., acceptance 1984/AC-836n, from mesh-sdk S1 9d0478d1
This commit is contained in:
@@ -584,13 +584,9 @@ func run(ctx context.Context, getenv func(string) string, logOut io.Writer) erro
|
||||
// Every part has registered: the hub pulls the module's durable. Where the consumer is not there yet the builder says so
|
||||
// and binds it at a later change (heard.Writer; ADR 0615 §5).
|
||||
_ = notHeard.Bind(eventsStream, sweep.EventArtifactsGone+", the registry seats' words, the views and manifest-reads-changed are not heard until the builder starts again", func() error {
|
||||
if err := hub.Start(ctx, js, cred); err != nil {
|
||||
return err
|
||||
}
|
||||
// And the kept seat events it handles (the build seats' toolchain-reported, the seat mesh-catalog's
|
||||
// version-released), each on its own stream: the tool runner reads its own twin there (lead answer A-397).
|
||||
hub.StartKept(ctx, js, cred)
|
||||
return nil
|
||||
// One Start binds every pattern's stream, the kept seat events' too (the build seats' toolchain-reported, the seat
|
||||
// mesh-catalog's version-released) (design 47 H2b §836 1.).
|
||||
return hub.Start(ctx, js, cred)
|
||||
})
|
||||
go func() { <-ctx.Done(); hub.Stop() }()
|
||||
// A person asks a key's build again with builder_ask_again, which writes the reasks state (issue 1945): watched, as
|
||||
|
||||
Reference in New Issue
Block a user