Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError when putting anything into a very large bloomfilter (hash_id: 203) #8

Closed
rhettlunn opened this issue Dec 7, 2020 · 1 comment · Fixed by #9
Closed

Comments

@rhettlunn
Copy link

iex(1)> b = Blex.new(3200000000, 0.01)
%Blex{
  a: #Reference<0.830440789.1533673474.145158>,
  b: 33,
  hash_fn: #Function<3.114810444/2 in Blex.get_hash_fn/1>,
  hash_id: 203,
  k: 7,
  m: 8589934592
}
iex(2)> Blex.put(b, 1)
** (ArgumentError) argument error
    (blex 0.2.0) lib/blex.ex:209: anonymous fn/2 in Blex.get_hash_fn/1
    (blex 0.2.0) lib/blex.ex:345: Blex.set_all/7

Line reference:
https://github.com/gyson/blex/blob/master/lib/blex.ex#L209

Unfortunately I'm pretty new to Elixir so the code's a bit beyond me to debug.

@gyson
Copy link
Owner

gyson commented Dec 8, 2020

published fix with 0.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants