Skip to content

Commit b9c1f3e

Browse files
author
Ashesh Vidyut
committed
fix impl
1 parent ee5306a commit b9c1f3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

store/tred_store.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,16 +2274,16 @@ func (ts *TredsStore) VDelete(args []string) (bool, error) {
22742274
return vector.Delete(nodeId), nil
22752275
}
22762276

2277-
func (ts *TredsStore) BFAdd(key, field string) error {
2277+
func (ts *TredsStore) BFAdd(key, field string) (int, error) {
22782278
kd := ts.getKeyDetails(key)
22792279
if kd != -1 && kd != BloomFilterStore {
2280-
return fmt.Errorf("not bloom filter store")
2280+
return 0, fmt.Errorf("not bloom filter store")
22812281
}
22822282
bf, ok := ts.bloomFilters[key]
22832283
if !ok {
22842284
bf = bloom.NewWithEstimates(100000, 0.01)
22852285
}
22862286
bf.Add([]byte(field))
22872287
ts.bloomFilters[key] = bf
2288-
return nil
2288+
return 1, nil
22892289
}

0 commit comments

Comments
 (0)