fix: wait-api should use GetAPI to acquire binary specific API
Fixes #6244 Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
7ce1312fc2
commit
624f5969b3
@ -12,7 +12,7 @@ var WaitApiCmd = &cli.Command{
|
||||
Usage: "Wait for lotus api to come online",
|
||||
Action: func(cctx *cli.Context) error {
|
||||
for i := 0; i < 30; i++ {
|
||||
api, closer, err := GetFullNodeAPI(cctx)
|
||||
api, closer, err := GetAPI(cctx)
|
||||
if err != nil {
|
||||
fmt.Printf("Not online yet... (%s)\n", err)
|
||||
time.Sleep(time.Second)
|
||||
|
Loading…
Reference in New Issue
Block a user