fix: clash between daemon --api flag and cli tests

This commit is contained in:
Dirk McCormick
2020-10-08 14:24:50 +02:00
parent 8f35a5c036
commit cb7d99fcc7
4 changed files with 47 additions and 25 deletions
+1 -2
View File
@@ -9,7 +9,6 @@ import (
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/node/repo"
manet "github.com/multiformats/go-multiaddr/net"
)
var pprofCmd = &cli.Command{
@@ -37,7 +36,7 @@ var PprofGoroutines = &cli.Command{
if err != nil {
return xerrors.Errorf("could not get API info: %w", err)
}
_, addr, err := manet.DialArgs(ainfo.Addr)
addr, err := ainfo.Host()
if err != nil {
return err
}