From 34bbd2ad26978e2e61661c733c9f3422d4766da8 Mon Sep 17 00:00:00 2001 From: Aayush Date: Wed, 21 Sep 2022 17:03:07 -0400 Subject: [PATCH] remove duplicate import --- cmd/lotus/daemon.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/lotus/daemon.go b/cmd/lotus/daemon.go index 8086ab2d1..0c7874dfc 100644 --- a/cmd/lotus/daemon.go +++ b/cmd/lotus/daemon.go @@ -30,7 +30,6 @@ import ( "github.com/filecoin-project/go-jsonrpc" "github.com/filecoin-project/go-paramfetch" - "github.com/filecoin-project/lotus/api" lapi "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/consensus/filcns" @@ -314,7 +313,7 @@ var DaemonCmd = &cli.Command{ log.Warnf("unable to inject prometheus ipfs/go-metrics exporter; some metrics will be unavailable; err: %s", err) } - var api api.FullNode + var api lapi.FullNode stop, err := node.New(ctx, node.FullAPI(&api, node.Lite(isLite)), @@ -393,7 +392,7 @@ var DaemonCmd = &cli.Command{ }, } -func importKey(ctx context.Context, api api.FullNode, f string) error { +func importKey(ctx context.Context, api lapi.FullNode, f string) error { f, err := homedir.Expand(f) if err != nil { return err