From 6be62b149dfeb45b0a5dac52cf38d02a9b9f23ee Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Mon, 7 Dec 2020 20:18:58 +0200 Subject: [PATCH] Reverted connections count --- src/ChannelManagers/RedisChannelManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChannelManagers/RedisChannelManager.php b/src/ChannelManagers/RedisChannelManager.php index 05cf66d..01e3419 100644 --- a/src/ChannelManagers/RedisChannelManager.php +++ b/src/ChannelManagers/RedisChannelManager.php @@ -265,7 +265,7 @@ class RedisChannelManager extends LocalChannelManager public function getGlobalConnectionsCount($appId, string $channelName = null): PromiseInterface { return $this->publishClient - ->hget($this->getRedisKey($appId, $channelName, ['stats']), 'current_connections_count') + ->hget($this->getRedisKey($appId, $channelName, ['stats']), 'connections') ->then(function ($count) { return is_null($count) ? 0 : (int) $count; }); @@ -559,7 +559,7 @@ class RedisChannelManager extends LocalChannelManager public function incrementSubscriptionsCount($appId, string $channel = null, int $increment = 1): PromiseInterface { return $this->publishClient->hincrby( - $this->getRedisKey($appId, $channel, ['stats']), 'current_connections_count', $increment + $this->getRedisKey($appId, $channel, ['stats']), 'connections', $increment ); }