Skip to content

Commit

Permalink
Merge pull request #70 from thalesmg/fix-scale-down-end
Browse files Browse the repository at this point in the history
fix: maintain state when scale down ends
  • Loading branch information
thalesmg authored Aug 16, 2024
2 parents ee9d66e + aa8496c commit 22458cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/emqttb_group.erl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ scale_down(0, S) ->
scale_down(NRepeats, S = #s{id = Group}) ->
case ets:first(live_id_pool(Group)) of
'$end_of_table' ->
ok;
S;
Id ->
case ets:lookup(live_id_pool(Group), Id) of
[] ->
Expand Down

0 comments on commit 22458cb

Please sign in to comment.