Fix reversed logic in node fixup function

This commit is contained in:
Paweł Chmielowski 2023-10-26 15:44:45 +02:00
parent 52e7c166fc
commit 3bf4cf5c3f
1 changed files with 2 additions and 2 deletions

View File

@ -247,8 +247,8 @@ delete_node(Host, Node) ->
fixup_node(#pubsub_node{options = Options} = Node) ->
Res = lists:splitwith(
fun({max_items, infinity}) -> true;
(_) -> false
fun({max_items, infinity}) -> false;
(_) -> true
end, Options),
Options2 = case Res of
{Before, [_ | After]} ->