Merge pull request #6246 from filecoin-project/fix/6244

fix: wait-api should use GetAPI to acquire binary specific API
This commit is contained in:
Łukasz Magiera 2021-05-17 17:41:59 +02:00 committed by GitHub
commit 6db2faea2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)