Skip to content

Commit

Permalink
Fix broken CI
Browse files Browse the repository at this point in the history
  • Loading branch information
farhadi committed Jan 11, 2024
1 parent 05ee274 commit 4775a75
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@ jobs:

strategy:
matrix:
otp: [21, 22, 23, 24]
otp: [25, 26]
rust: [stable]

container:
image: erlang:${{matrix.otp}}

steps:
- name: Checkout sources
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Install Erlang OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: 3.22.1

- name: Install Rust ${{matrix.rust}} toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{matrix.rust}}
override: true
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{erl_opts, [debug_info]}.

{profiles, [
{test, [{deps, [{xxh3, "0.3.2"}]}]}
{test, [{deps, [{xxh3, "0.3.5"}]}]}
]}.

{project_plugins, [erlfmt]}.
Expand Down
2 changes: 2 additions & 0 deletions src/cuckoo_filter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ import(FilterName, Data) ->
%% Internal functions
%%%-------------------------------------------------------------------

-dialyzer({nowarn_function, default_hash_function/1}).

default_hash_function(Size) when Size > 64 ->
fun(Element) -> xxh3:hash128(term_to_binary(Element)) end;
default_hash_function(Size) when Size > 32 ->
Expand Down
2 changes: 1 addition & 1 deletion src/cuckoo_filter.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
bucket_size :: pos_integer(),
fingerprint_size :: 4 | 8 | 16 | 32 | 64,
max_evictions :: non_neg_integer(),
hash_function :: fun((binary()) -> non_neg_integer())
hash_function :: fun((any()) -> non_neg_integer())
}).

0 comments on commit 4775a75

Please sign in to comment.