Skip to content

Commit

Permalink
Stub out event handlers for #627 and #628
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Feb 15, 2016
1 parent f3cfb57 commit b1ec9f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rabbit_connection_tracking_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ handle_event(#event{type = connection_closed, props = Details}, State) ->
{proplists:get_value(node, Details),
proplists:get_value(name, Details)}),
{ok, State};
handle_event(#event{type = vhost_deleted, props = Details}, State) ->
VHost = proplists:get_value(name, Details),
%% TODO: force close and unregister connections in
%% this vhost. Moved to rabbitmq/rabbitmq-server#627.
{ok, State};
handle_event(#event{type = user_deleted, props = Details}, State) ->
Username = proplists:get_value(name, Details),
%% TODO: force close and unregister connections from
%% this user. Moved to rabbitmq/rabbitmq-server#628.
{ok, State};
handle_event(_Event, State) ->
{ok, State}.

Expand Down

0 comments on commit b1ec9f3

Please sign in to comment.