From 25b9207cc884779cbad0b4594bdc57397951e238 Mon Sep 17 00:00:00 2001 From: Travis Person Date: Tue, 26 Oct 2021 21:28:54 +0000 Subject: [PATCH] fix build + lint --- testplans/lotus-soup/testkit/node.go | 2 ++ tools/stats/ipldstore/ipldstore.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/testplans/lotus-soup/testkit/node.go b/testplans/lotus-soup/testkit/node.go index e4a396641ca..9506c4bf4ea 100644 --- a/testplans/lotus-soup/testkit/node.go +++ b/testplans/lotus-soup/testkit/node.go @@ -8,6 +8,7 @@ import ( "sort" "time" + "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/chain/beacon" "github.com/filecoin-project/lotus/chain/wallet" @@ -19,6 +20,7 @@ import ( tinflux "github.com/filecoin-project/lotus/tools/stats/influx" tipldstore "github.com/filecoin-project/lotus/tools/stats/ipldstore" + tpoints "github.com/filecoin-project/lotus/tools/stats/points" tsync "github.com/filecoin-project/lotus/tools/stats/sync" influxdb "github.com/kpacha/opencensus-influxdb" diff --git a/tools/stats/ipldstore/ipldstore.go b/tools/stats/ipldstore/ipldstore.go index d7e04b83eae..9adc599fd52 100644 --- a/tools/stats/ipldstore/ipldstore.go +++ b/tools/stats/ipldstore/ipldstore.go @@ -31,7 +31,7 @@ func NewApiIpldStore(ctx context.Context, api apiIpldStoreApi, cacheSize int) (* cacheSize: cacheSize, } - cache, err := lru.New2Q(int(store.cacheSize)) + cache, err := lru.New2Q(store.cacheSize) if err != nil { return nil, err }