We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0af55d8 + 3e42227 commit 7881327Copy full SHA for 7881327
1 file changed
deps/rabbit/src/rabbit_reader.erl
@@ -966,11 +966,11 @@ create_channel(Channel,
966
put({ch_pid, ChPid}, {Channel, MRef}),
967
put({channel, Channel}, {ChPid, AState}),
968
{ok, {ChPid, AState}, State#v1{channel_count = ChannelCount + 1}};
969
- {true, Limit, Fmt} ->
+ {true, Limit, Fmt, FmtArg} ->
970
{error, rabbit_misc:amqp_error(
971
not_allowed,
972
Fmt,
973
- [node(), Limit], 'none')}
+ [FmtArg, Limit], 'none')}
974
end.
975
976
is_over_limits(Username) ->
@@ -983,13 +983,13 @@ is_over_limits(Username) ->
983
Fmt =
984
"number of channels opened on node '~ts' has reached "
985
"the maximum allowed limit of (~w)",
986
- {true, Limit, Fmt}
+ {true, Limit, Fmt, node()}
987
end;
988
{true, Limit} ->
989
990
"number of channels opened for user '~ts' has reached "
991
"the maximum allowed user limit of (~w)",
992
+ {true, Limit, Fmt, Username}
993
994
995
is_over_node_channel_limit() ->
0 commit comments