H-A-480 b: the composer's watch ends with the agent's stop
The composer's loop and its hearers outlived the node agent's run and logged after it ended; the node agent now waits for them (Composer.Wait) once its run stops. Builds: design 47 H2 H-A-480
This commit is contained in:
@@ -796,6 +796,7 @@ func nodeAgent(ctx context.Context, opts options, signer ed25519.PublicKey, trus
|
||||
err = ag.Run(run)
|
||||
stopRun()
|
||||
cancel()
|
||||
composer.Wait() // its watch ends with the agent's stop, and says nothing after it (H-A-480)
|
||||
current.set(nil)
|
||||
composerNow.Store(nil)
|
||||
ownFindingsNow.Store(nil)
|
||||
|
||||
Reference in New Issue
Block a user