We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3cd06c + 377ed0f commit 6a16097Copy full SHA for 6a16097
1 file changed
deps/rabbit/src/rabbit_reader.erl
@@ -955,11 +955,11 @@ create_channel(Channel,
955
put({ch_pid, ChPid}, {Channel, MRef}),
956
put({channel, Channel}, {ChPid, AState}),
957
{ok, {ChPid, AState}, State#v1{channel_count = ChannelCount + 1}};
958
- {true, Limit, Fmt} ->
+ {true, Limit, Fmt, FmtArg} ->
959
{error, rabbit_misc:amqp_error(
960
not_allowed,
961
Fmt,
962
- [node(), Limit], 'none')}
+ [FmtArg, Limit], 'none')}
963
end.
964
965
is_over_limits(Username) ->
@@ -972,13 +972,13 @@ is_over_limits(Username) ->
972
Fmt =
973
"number of channels opened on node '~ts' has reached "
974
"the maximum allowed limit of (~w)",
975
- {true, Limit, Fmt}
+ {true, Limit, Fmt, node()}
976
end;
977
{true, Limit} ->
978
979
"number of channels opened for user '~ts' has reached "
980
"the maximum allowed user limit of (~w)",
981
+ {true, Limit, Fmt, Username}
982
983
984
is_over_node_channel_limit() ->
0 commit comments