mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 20:37:53 +08:00
go-ipfs-config: config: add config option for bloom filter
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
35108597dd
commit
30b5a1f28c
@ -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 {
|
||||
|
||||
@ -85,6 +85,7 @@ func datastoreConfig() (Datastore, error) {
|
||||
StorageGCWatermark: 90, // 90%
|
||||
GCPeriod: "1h",
|
||||
HashOnRead: false,
|
||||
BloomFilterSize: 0,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user