Skip to content

Commit

Permalink
Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 19, 2016
1 parent f3a1101 commit 7499020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rabbit_vhost.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
%%----------------------------------------------------------------------------

-export([add/1, delete/1, exists/1, list/0, with/2, assert/1, update/2,
set_limits/2]).
set_limits/2, limits_of/1]).
-export([info/1, info/2, info_all/0, info_all/1, info_all/2, info_all/3]).

-ifdef(use_specs).
Expand Down Expand Up @@ -156,13 +156,13 @@ update(VHostPath, Fun) ->

limits_of(VHostPath) when is_binary(VHostPath) ->
assert(VHostPath),
case mnesia:read({rabbit_vhost, VHostPath}) of
case mnesia:dirty_read({rabbit_vhost, VHostPath}) of
[] ->
mnesia:abort({no_such_vhost, VHostPath});
[V = #vhost{limits = Limits}] ->
[#vhost{limits = Limits}] ->
Limits
end;
limits_of(VHost = #vhost{virtual_host = Name}) ->
limits_of(#vhost{virtual_host = Name}) ->
limits_of(Name).

set_limits(VHost = #vhost{}, undefined) ->
Expand Down

0 comments on commit 7499020

Please sign in to comment.