Skip to content

Commit 204fd54

Browse files
committed
Make dialyzer happy
1 parent 94756b7 commit 204fd54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbitmq_consistent_hash_exchange/src/rabbit_exchange_type_consistent_hash.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ recover_exchange_and_bindings(#exchange{name = XName} = X) ->
143143
Bindings = rabbit_binding:list_for_source(XName),
144144
?LOG_DEBUG("Consistent hashing exchange: have ~b bindings to recover for exchange ~ts",
145145
[length(Bindings), rabbit_misc:rs(XName)]),
146-
[add_binding(none, X, B) || B <- lists:usort(Bindings)],
146+
_ = [add_binding(none, X, B) || B <- lists:usort(Bindings)],
147147
?LOG_DEBUG("Consistent hashing exchange: recovered bindings for exchange ~ts",
148148
[rabbit_misc:rs(XName)]).
149149

@@ -191,7 +191,7 @@ chx_hash_ring_update_fun(#chx_hash_ring{bucket_map = BM0,
191191

192192
remove_bindings(_Serial, _X, Bindings) ->
193193
Ret = rabbit_db_ch_exchange:delete_bindings(Bindings, fun ch_hash_ring_delete_fun/2),
194-
[?LOG_WARNING("Can't remove binding: hash ring state for exchange ~s wasn't found",
194+
_ = [?LOG_WARNING("Can't remove binding: hash ring state for exchange ~s wasn't found",
195195
[rabbit_misc:rs(X)]) || {not_found, X} <- Ret],
196196
ok.
197197

0 commit comments

Comments
 (0)