remove duplicate import

This commit is contained in:
Aayush 2022-09-21 17:03:07 -04:00 committed by Łukasz Magiera
parent 5d28eea968
commit 34bbd2ad26

View File

@ -30,7 +30,6 @@ import (
"github.com/filecoin-project/go-jsonrpc" "github.com/filecoin-project/go-jsonrpc"
"github.com/filecoin-project/go-paramfetch" "github.com/filecoin-project/go-paramfetch"
"github.com/filecoin-project/lotus/api"
lapi "github.com/filecoin-project/lotus/api" lapi "github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/consensus/filcns" "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) 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, stop, err := node.New(ctx,
node.FullAPI(&api, node.Lite(isLite)), 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) f, err := homedir.Expand(f)
if err != nil { if err != nil {
return err return err