Skip to content

Commit

Permalink
go-ipfs-config: Merge pull request ipfs#2973 from ipfs/feature/blocks…
Browse files Browse the repository at this point in the history
…tore-bloom-config

config: add config option for bloom filter
  • Loading branch information
whyrusleeping authored Jul 16, 2016
2 parents 477ce99 + 2471add commit 1187881
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func datastoreConfig() (Datastore, error) {
StorageGCWatermark: 90, // 90%
GCPeriod: "1h",
HashOnRead: false,
BloomFilterSize: 0,
}, nil
}

Expand Down

0 comments on commit 1187881

Please sign in to comment.