From d5e6df04bb294e6e07465be08edac6def935e8c1 Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Mon, 6 Jan 2025 09:55:02 +0000 Subject: [PATCH] Dialyzer --- deps/rabbit/src/rabbit_fifo_client.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/rabbit/src/rabbit_fifo_client.erl b/deps/rabbit/src/rabbit_fifo_client.erl index 16804075c4c..20f6be15d45 100644 --- a/deps/rabbit/src/rabbit_fifo_client.erl +++ b/deps/rabbit/src/rabbit_fifo_client.erl @@ -78,7 +78,7 @@ cached_segments :: undefined | {undefined | reference(), LastSeenMs :: milliseconds(), - ra_flr:state()} + ra_flru:state()} }). -opaque state() :: #state{}. @@ -909,7 +909,8 @@ handle_delivery(QName, Leader, {delivery, Tag, ReadPlan, Msgs}, {TRef, now_ms(), Cached1}; false -> if TRef =/= undefined -> - erlang:cancel_timer(TRef, [{async, true}]); + _ = erlang:cancel_timer(TRef, [{async, true}]), + ok; true -> ok end,