Skip to content

Commit e342cc1

Browse files
committed
Add select node logic
1 parent eb7108f commit e342cc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbit/src/rabbit_queue_member_eval.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ select_node(Nodes, _QueueCount, _QueueCountStartRandom) ->
230230
end, Acc, MNodes)
231231
end, Counters0, Queues),
232232
L0 = maps:to_list(Counters),
233+
%% Maybe cache this result for a few seconds, to
234+
%% not run this check for each queue?
233235
L1 = lists:sort(fun({_N0, C0}, {_N1, C1}) ->
234236
C0 =< C1
235237
end, L0),

0 commit comments

Comments
 (0)