Skip to content

Commit c14bb2e

Browse files
committed
update readme
1 parent 39fc0f4 commit c14bb2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ opts := bbolt.Options{
4545
db = sprout.NewBolt("/tmp/test.db", 0600, opts)
4646
defer db.Close()
4747

48-
bf := sprout.NewBloom(0.01, 100, db)
48+
opts := &sprout.BloomOptions{
49+
Err_rate: 0.01,
50+
Path: "bloom.db",
51+
Capacity: 100,
52+
}
53+
bf := sprout.NewBloom(opts)
4954
```
5055

5156
#### Using Scalable bloom filter

0 commit comments

Comments
 (0)