Skip to content

Commit 6a7f8d0

Browse files
mkuratczykmichaelklishin
authored andcommitted
Remove redundant copy of adjust_for_message_handling_proc/0
1 parent 465b19e commit 6a7f8d0

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

deps/rabbit/src/rabbit_channel.erl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2787,16 +2787,3 @@ maybe_decrease_global_publishers(#ch{publishing_mode = true}) ->
27872787

27882788
is_global_qos_permitted() ->
27892789
rabbit_deprecated_features:is_permitted(global_qos).
2790-
2791-
adjust_vheap() ->
2792-
case code_version:get_otp_version() of
2793-
OtpMaj when OtpMaj >= 27 ->
2794-
%% 46422 is the default min_bin_vheap_size and for OTP 27 and above
2795-
%% we want to substantially increase it for processes that may buffer
2796-
%% messages. 32x has proven workable in testing whilst not being
2797-
%% rediculously large
2798-
process_flag(min_bin_vheap_size, 46422 * 32);
2799-
_ ->
2800-
ok
2801-
end.
2802-

deps/rabbit/src/rabbit_process_flag.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
-export([adjust_for_message_handling_proc/0
1212
]).
1313

14-
%% @doc Enqueues a message.
1514
%% Adjust process flags for processes that handle RabbitMQ messages.
1615
%% For example any process that uses the `rabbit_queue_type' module
1716
%% may benefit from this tuning.
@@ -24,7 +23,7 @@ adjust_for_message_handling_proc() ->
2423
%% 46422 is the default min_bin_vheap_size and for OTP 27 and above
2524
%% we want to substantially increase it for processes that may buffer
2625
%% messages. 32x has proven workable in testing whilst not being
27-
%% rediculously large
26+
%% ridiculously large
2827
process_flag(min_bin_vheap_size, 46422 * 32),
2928
ok;
3029
_ ->

0 commit comments

Comments
 (0)