Reverted connections count

This commit is contained in:
Alex Renoki 2020-12-07 20:18:58 +02:00
parent 0e48bb4944
commit 6be62b149d
1 changed files with 2 additions and 2 deletions

View File

@ -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
);
}