1717package main
1818
1919import (
20- "encoding/json"
2120 "encoding/base64"
21+ "encoding/json"
2222 "fmt"
2323 "os"
2424 "time"
@@ -347,7 +347,7 @@ var pendingTxnsCmd = &cobra.Command{
347347var waitCmd = & cobra.Command {
348348 Use : "wait" ,
349349 Short : "Waits for the node to make progress" ,
350- Long : "Waits for the node to make progress, which includes catching up" ,
350+ Long : "Waits for the node to make progress, which includes catching up" ,
351351 Args : validateNoPosArgsFn ,
352352 Run : func (cmd * cobra.Command , _ []string ) {
353353 client := ensureAlgodClient (ensureSingleDataDir ())
@@ -360,16 +360,16 @@ var waitCmd = &cobra.Command{
360360 endTime := time .After (time .Second * time .Duration (waitSec ))
361361 for {
362362 select {
363- case <- endTime :
364- reportErrorf ("Timed out waiting for node to make progress" )
365- case <- time .After (500 * time .Millisecond ):
366- stat , err = client .Status ()
367- if err != nil {
368- reportErrorf (errorNodeStatus , err )
369- }
370- if startRound != stat .LastRound {
371- os .Exit (0 )
372- }
363+ case <- endTime :
364+ reportErrorf ("Timed out waiting for node to make progress" )
365+ case <- time .After (500 * time .Millisecond ):
366+ stat , err = client .Status ()
367+ if err != nil {
368+ reportErrorf (errorNodeStatus , err )
369+ }
370+ if startRound != stat .LastRound {
371+ os .Exit (0 )
372+ }
373373 }
374374 }
375375 },
0 commit comments