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:
Jakub Sztandera 2021-05-13 19:58:15 +02:00
parent 7ce1312fc2
commit 624f5969b3
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -12,7 +12,7 @@ var WaitApiCmd = &cli.Command{
Usage: "Wait for lotus api to come online", Usage: "Wait for lotus api to come online",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
for i := 0; i < 30; i++ { for i := 0; i < 30; i++ {
api, closer, err := GetFullNodeAPI(cctx) api, closer, err := GetAPI(cctx)
if err != nil { if err != nil {
fmt.Printf("Not online yet... (%s)\n", err) fmt.Printf("Not online yet... (%s)\n", err)
time.Sleep(time.Second) time.Sleep(time.Second)