Skip to content

Commit 1f6b687

Browse files
committed
Update Khepri + Dialyzer fix
1 parent c71adf0 commit 1f6b687

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ erlang_package.hex_package(
287287
erlang_package.git_package(
288288
name = "khepri",
289289
build_file = "@rabbitmq-server//bazel:BUILD.khepri",
290-
commit = "24e33d5c2656b0f05404e97c2b7d763d1a799650",
290+
commit = "cb52d575903ddb0e0f13d2ac9ee819b046f9d598",
291291
repository = "rabbitmq/khepri",
292292
)
293293

deps/rabbit/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ dep_syslog = git https://github.com/schlagert/syslog 4.0.0
151151
dep_osiris = git https://github.com/rabbitmq/osiris v1.6.7
152152
dep_systemd = hex 0.6.1
153153
dep_seshat = git https://github.com/rabbitmq/seshat v0.6.1
154-
dep_khepri = git https://github.com/rabbitmq/khepri 24e33d5c2656b0f05404e97c2b7d763d1a799650
154+
dep_khepri = git https://github.com/rabbitmq/khepri cb52d575903ddb0e0f13d2ac9ee819b046f9d598
155155
dep_khepri_mnesia_migration = hex 0.1.1
156156

157157
define usage_xml_to_erl

deps/rabbit/src/rabbit_db_queue.erl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
khepri_queues_path/0
7979
]).
8080

81+
-dialyzer({nowarn_function, [foreach_transient/1,
82+
foreach_transient_in_khepri/1]}).
83+
8184
-define(MNESIA_TABLE, rabbit_queue).
8285
-define(MNESIA_DURABLE_TABLE, rabbit_durable_queue).
8386

@@ -1014,7 +1017,7 @@ delete_transient_in_khepri(FilterFun) ->
10141017
foreach_transient(UpdateFun) ->
10151018
rabbit_khepri:handle_fallback(
10161019
#{mnesia => fun() -> foreach_transient_in_mnesia(UpdateFun) end,
1017-
khepri => fun() -> throw(not_implemented) end
1020+
khepri => fun() -> foreach_transient_in_khepri(UpdateFun) end
10181021
}).
10191022

10201023
foreach_transient_in_mnesia(UpdateFun) ->
@@ -1026,6 +1029,9 @@ foreach_transient_in_mnesia(UpdateFun) ->
10261029
ok
10271030
end).
10281031

1032+
foreach_transient_in_khepri(_UpdateFun) ->
1033+
throw(not_implemented).
1034+
10291035
%% -------------------------------------------------------------------
10301036
%% foreach_durable().
10311037
%% -------------------------------------------------------------------

0 commit comments

Comments
 (0)