Disable blockstore bloom filter
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
420ec18c5b
commit
3a46c15c4a
@ -50,9 +50,16 @@ type GCLocker = blockstore.GCLocker
|
||||
|
||||
var NewGCLocker = blockstore.NewGCLocker
|
||||
var NewGCBlockstore = blockstore.NewGCBlockstore
|
||||
var DefaultCacheOpts = blockstore.DefaultCacheOpts
|
||||
var ErrNotFound = blockstore.ErrNotFound
|
||||
|
||||
func DefaultCacheOpts() CacheOpts {
|
||||
return CacheOpts{
|
||||
HasBloomFilterSize: 0,
|
||||
HasBloomFilterHashes: 0,
|
||||
HasARCCacheSize: 512 << 10,
|
||||
}
|
||||
}
|
||||
|
||||
func CachedBlockstore(ctx context.Context, bs Blockstore, opts CacheOpts) (Blockstore, error) {
|
||||
bs, err := blockstore.CachedBlockstore(ctx, bs, opts)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user