diff options
| author | Ayanda-D <ayanda.dube@erlang-solutions.com> | 2020-06-08 11:25:44 +0100 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2020-09-02 04:28:58 +0300 |
| commit | 6ee55529459d9f17af1d47e56b7e11cfdcaa8c5f (patch) | |
| tree | 1c602c9a4ab4c1260414210e8d7ea1e2836edc59 | |
| parent | 44b7e557afda44fe69c67f9be81699c30ba6a807 (diff) | |
| download | rabbitmq-server-git-6ee55529459d9f17af1d47e56b7e11cfdcaa8c5f.tar.gz | |
Use count_tracked_items_in
| -rw-r--r-- | src/rabbit_vhost_limit.erl | 2 | ||||
| -rw-r--r-- | test/per_vhost_connection_limit_partitions_SUITE.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_vhost_limit.erl b/src/rabbit_vhost_limit.erl index 7f125e442d..bee01f3054 100644 --- a/src/rabbit_vhost_limit.erl +++ b/src/rabbit_vhost_limit.erl @@ -91,7 +91,7 @@ is_over_connection_limit(VirtualHost) -> {ok, 0} -> {true, 0}; {ok, Limit} when is_integer(Limit) andalso Limit > 0 -> ConnectionCount = - rabbit_connection_tracking:count_tracked_items({vhost, VirtualHost}), + rabbit_connection_tracking:count_tracked_items_in({vhost, VirtualHost}), case ConnectionCount >= Limit of false -> false; true -> {true, Limit} diff --git a/test/per_vhost_connection_limit_partitions_SUITE.erl b/test/per_vhost_connection_limit_partitions_SUITE.erl index aa190d1f7a..5d8eca6d48 100644 --- a/test/per_vhost_connection_limit_partitions_SUITE.erl +++ b/test/per_vhost_connection_limit_partitions_SUITE.erl @@ -140,7 +140,7 @@ count_connections_in(Config, VHost) -> count_connections_in(Config, VHost, NodeIndex) -> rabbit_ct_broker_helpers:rpc(Config, NodeIndex, rabbit_connection_tracking, - count_tracked_items, [{vhost, VHost}]). + count_tracked_items_in, [{vhost, VHost}]). connections_in(Config, VHost) -> connections_in(Config, 0, VHost). |
