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

Commit 6be62b1

Browse files
committed
Reverted connections count
1 parent 0e48bb4 commit 6be62b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ChannelManagers/RedisChannelManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function getLocalConnectionsCount($appId, string $channelName = null): Pr
265265
public function getGlobalConnectionsCount($appId, string $channelName = null): PromiseInterface
266266
{
267267
return $this->publishClient
268-
->hget($this->getRedisKey($appId, $channelName, ['stats']), 'current_connections_count')
268+
->hget($this->getRedisKey($appId, $channelName, ['stats']), 'connections')
269269
->then(function ($count) {
270270
return is_null($count) ? 0 : (int) $count;
271271
});
@@ -559,7 +559,7 @@ public function getServerId(): string
559559
public function incrementSubscriptionsCount($appId, string $channel = null, int $increment = 1): PromiseInterface
560560
{
561561
return $this->publishClient->hincrby(
562-
$this->getRedisKey($appId, $channel, ['stats']), 'current_connections_count', $increment
562+
$this->getRedisKey($appId, $channel, ['stats']), 'connections', $increment
563563
);
564564
}
565565

0 commit comments

Comments
 (0)