Skip to content

Commit 837534d

Browse files
committed
Add vhost name to rabbit_vhost_limit notifications
1 parent f90c9d3 commit 837534d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbit/src/rabbit_vhost_limit.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ validate(_VHost, <<"vhost-limits">>, Name, Term, _User) ->
3939

4040
notify(VHost, <<"vhost-limits">>, <<"limits">>, Limits, ActingUser) ->
4141
rabbit_event:notify(vhost_limits_set, [{name, <<"limits">>},
42+
{vhost, VHost},
4243
{user_who_performed_action, ActingUser}
4344
| Limits]),
4445
update_vhost(VHost, Limits).
4546

4647
notify_clear(VHost, <<"vhost-limits">>, <<"limits">>, ActingUser) ->
4748
rabbit_event:notify(vhost_limits_cleared, [{name, <<"limits">>},
49+
{vhost, VHost},
4850
{user_who_performed_action, ActingUser}]),
4951
%% If the function is called as a part of vhost deletion, the vhost can
5052
%% be already deleted.

0 commit comments

Comments
 (0)