mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
Merge branch 'main' into snapshots
This commit is contained in:
@@ -89,9 +89,8 @@ func run(log logging.Logger, binaryPath string) error {
|
||||
// Wait until the nodes in the network are ready
|
||||
ctx, cancel := context.WithTimeout(context.Background(), healthyTimeout)
|
||||
defer cancel()
|
||||
healthyChan := nw.Healthy(ctx)
|
||||
log.Info("waiting for all nodes to report healthy...")
|
||||
if err := <-healthyChan; err != nil {
|
||||
if err := nw.Healthy(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@@ -93,10 +93,10 @@ func run(log logging.Logger, binaryPath string) error {
|
||||
// Wait until the nodes in the network are ready
|
||||
ctx, cancel := context.WithTimeout(context.Background(), healthyTimeout)
|
||||
defer cancel()
|
||||
healthyChan := nw.Healthy(ctx)
|
||||
log.Info("waiting for all nodes to report healthy...")
|
||||
if err := <-healthyChan; err != nil {
|
||||
if err := nw.Healthy(ctx); err != nil {
|
||||
return err
|
||||
|
||||
}
|
||||
|
||||
// Print the node names
|
||||
@@ -150,9 +150,8 @@ func run(log logging.Logger, binaryPath string) error {
|
||||
// Wait until the nodes in the updated network are ready
|
||||
ctx, cancel = context.WithTimeout(context.Background(), healthyTimeout)
|
||||
defer cancel()
|
||||
healthyChan = nw.Healthy(ctx)
|
||||
log.Info("waiting for updated network to report healthy...")
|
||||
if err := <-healthyChan; err != nil {
|
||||
if err := nw.Healthy(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user