Skip to content

Instantly share code, notes, and snippets.

@arriqaaq
Created September 28, 2018 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arriqaaq/4206b3648981e027994d5688381ba2a5 to your computer and use it in GitHub Desktop.
Save arriqaaq/4206b3648981e027994d5688381ba2a5 to your computer and use it in GitHub Desktop.
func (c *CuckooFilter) Delete(data []byte) bool {
i1, i2, f := c.getCuckooParams(data)
if c.buckets[i1].delete(f) || c.buckets[i2].delete(f) {
return true
}
return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment