From 30b5a1f28c2aae0169ca052d203583a81e15a548 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 15 Jul 2016 21:38:46 +0100 Subject: [PATCH] go-ipfs-config: config: add config option for bloom filter License: MIT Signed-off-by: Jakub Sztandera --- config/datastore.go | 7 ++++--- config/init.go | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/datastore.go b/config/datastore.go index 2b9bf600df2..2b861a113cf 100644 --- a/config/datastore.go +++ b/config/datastore.go @@ -15,9 +15,10 @@ type Datastore struct { StorageGCWatermark int64 // in percentage to multiply on StorageMax GCPeriod string // in ns, us, ms, s, m, h - Params *json.RawMessage - NoSync bool - HashOnRead bool + Params *json.RawMessage + NoSync bool + HashOnRead bool + BloomFilterSize int } func (d *Datastore) ParamData() []byte { diff --git a/config/init.go b/config/init.go index 8a6c72222ce..5123e39e9e4 100644 --- a/config/init.go +++ b/config/init.go @@ -85,6 +85,7 @@ func datastoreConfig() (Datastore, error) { StorageGCWatermark: 90, // 90% GCPeriod: "1h", HashOnRead: false, + BloomFilterSize: 0, }, nil }