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,