Created
September 28, 2018 15:13
-
-
Save arriqaaq/4206b3648981e027994d5688381ba2a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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