Skip to content

Commit

Permalink
(to be reverted) revert to old caches.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Nov 8, 2020
1 parent 3ef260f commit 4d38e94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/lotus-bench/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/cockroachdb/pebble"
"github.com/cockroachdb/pebble/bloom"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-metrics-interface"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

Expand Down Expand Up @@ -235,7 +236,10 @@ var importBenchCmd = &cli.Command{
defer c.Close() //nolint:errcheck
}

bs, err = blockstore.WrapRistrettoCache(bs)
ctx := metrics.CtxScope(context.Background(), "lotus")
opts := blockstore.DefaultCacheOpts()
opts.HasBloomFilterSize = 0
bs, err = blockstore.CachedBlockstore(ctx, bs, opts)
if err != nil {
return err
}
Expand Down

0 comments on commit 4d38e94

Please sign in to comment.