go-ipfs-config: config: add config option for bloom filter
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Jul 15, 2016 at 21:38 UTC
30b5a1f28c2aae0169ca052d203583a81e15a548
2 files changed
+5
-3
config/datastore.go
+4
-3
@@ -15,9 +15,10 @@ type Datastore struct {
15
StorageGCWatermark int64 // in percentage to multiply on StorageMax
16
GCPeriod string // in ns, us, ms, s, m, h
17
18
- Params *json.RawMessage
19
- NoSync bool
20
- HashOnRead bool
18
+ Params *json.RawMessage
19
+ NoSync bool
20
+ HashOnRead bool
21
+ BloomFilterSize int
22
}
23
24
func (d *Datastore) ParamData() []byte {
config/init.go
+1
@@ -85,6 +85,7 @@ func datastoreConfig() (Datastore, error) {
85
StorageGCWatermark: 90, // 90%
86
GCPeriod: "1h",
87
HashOnRead: false,
88
+ BloomFilterSize: 0,
89
}, nil
90
}
91