From e691efb9cd17d8c9276d10c130c60818b48322cc Mon Sep 17 00:00:00 2001 From: swift-mx Date: Thu, 2 Jun 2022 12:02:41 +0800 Subject: [PATCH] fix: CI --- cmd/lotus-shed/hello.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-shed/hello.go b/cmd/lotus-shed/hello.go index 7f5a9a686..757170831 100644 --- a/cmd/lotus-shed/hello.go +++ b/cmd/lotus-shed/hello.go @@ -4,6 +4,9 @@ import ( "context" "encoding/json" "fmt" + "os" + "time" + "github.com/filecoin-project/go-address" cborutil "github.com/filecoin-project/go-cbor-util" "github.com/filecoin-project/lotus/blockstore" @@ -22,8 +25,6 @@ import ( "github.com/multiformats/go-multiaddr" "github.com/urfave/cli/v2" "golang.org/x/xerrors" - "os" - "time" ) var helloCmd = &cli.Command{ @@ -63,7 +64,9 @@ var helloCmd = &cli.Command{ return err } h, err := libp2p.New(libp2p.Identity(priv)) - + if err != nil { + return err + } err = h.Connect(ctx, pis[0]) if err != nil { return err