Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
okdas committed Aug 22, 2024
1 parent 730030f commit 39d738d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kvstore/pebble/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (store *pebbleKVStore) Exists(key []byte) (bool, error) {
}

// ClearAll removes all key-value pairs from the store.
// DEV_NOTE: currently not used in production code, but consider optimizing with `Batch.DeleteRange` if that changes.
func (store *pebbleKVStore) ClearAll() error {
iter, _ := store.db.NewIter(nil)
defer iter.Close()
Expand Down

0 comments on commit 39d738d

Please sign in to comment.