Merge branch 'feature/redis-statistics-driver' of github.com:beyondcode/laravel-websockets into feature/redis-statistics-driver

This commit is contained in:
Alex Renoki 2020-08-27 22:18:32 +03:00
commit 0f4928f93a
3 changed files with 2 additions and 4 deletions

View File

@ -85,7 +85,6 @@ class RedisStatisticsLogger implements StatisticsLogger
? 1 ? 1
: max($currentPeakConnectionCount, $currentConnectionCount); : max($currentPeakConnectionCount, $currentConnectionCount);
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount); $this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
} }
@ -106,7 +105,6 @@ class RedisStatisticsLogger implements StatisticsLogger
? 0 ? 0
: max($currentPeakConnectionCount, $currentConnectionCount); : max($currentPeakConnectionCount, $currentConnectionCount);
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount); $this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
} }

View File

@ -4,8 +4,8 @@ namespace BeyondCode\LaravelWebSockets\Tests\Statistics\Controllers;
use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger; use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger;
use BeyondCode\LaravelWebSockets\Statistics\Logger\MemoryStatisticsLogger; use BeyondCode\LaravelWebSockets\Statistics\Logger\MemoryStatisticsLogger;
use BeyondCode\LaravelWebSockets\Statistics\Logger\RedisStatisticsLogger;
use BeyondCode\LaravelWebSockets\Statistics\Logger\NullStatisticsLogger; use BeyondCode\LaravelWebSockets\Statistics\Logger\NullStatisticsLogger;
use BeyondCode\LaravelWebSockets\Statistics\Logger\RedisStatisticsLogger;
use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry; use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry;
use BeyondCode\LaravelWebSockets\Tests\TestCase; use BeyondCode\LaravelWebSockets\Tests\TestCase;

View File

@ -8,8 +8,8 @@ use BeyondCode\LaravelWebSockets\PubSub\Drivers\RedisClient;
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface; use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver; use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver;
use BeyondCode\LaravelWebSockets\Tests\Mocks\Connection; use BeyondCode\LaravelWebSockets\Tests\Mocks\Connection;
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
use BeyondCode\LaravelWebSockets\Tests\Mocks\FakeMemoryStatisticsLogger; use BeyondCode\LaravelWebSockets\Tests\Mocks\FakeMemoryStatisticsLogger;
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager; use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Request;
use Orchestra\Testbench\BrowserKit\TestCase as BaseTestCase; use Orchestra\Testbench\BrowserKit\TestCase as BaseTestCase;