Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Reverted connections count
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Dec 7, 2020
1 parent 0e48bb4 commit 6be62b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ChannelManagers/RedisChannelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function getLocalConnectionsCount($appId, string $channelName = null): Pr
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;
});
Expand Down Expand Up @@ -559,7 +559,7 @@ public function getServerId(): string
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
);
}

Expand Down

0 comments on commit 6be62b1

Please sign in to comment.