Removed $redis from RedisClient

This commit is contained in:
Alex Renoki 2020-09-04 09:49:14 +03:00
parent a45c0bf9cc
commit e9ec650010
1 changed files with 0 additions and 9 deletions

View File

@ -7,7 +7,6 @@ use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager; use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
use Clue\React\Redis\Client; use Clue\React\Redis\Client;
use Clue\React\Redis\Factory; use Clue\React\Redis\Factory;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use React\EventLoop\LoopInterface; use React\EventLoop\LoopInterface;
use React\Promise\PromiseInterface; use React\Promise\PromiseInterface;
@ -43,13 +42,6 @@ class RedisClient extends LocalClient
*/ */
protected $subscribeClient; protected $subscribeClient;
/**
* The Redis manager instance.
*
* @var \Illuminate\Redis\RedisManager
*/
protected $redis;
/** /**
* Mapping of subscribed channels, where the key is the channel name, * Mapping of subscribed channels, where the key is the channel name,
* and the value is the amount of connections which are subscribed to * and the value is the amount of connections which are subscribed to
@ -68,7 +60,6 @@ class RedisClient extends LocalClient
public function __construct() public function __construct()
{ {
$this->serverId = Str::uuid()->toString(); $this->serverId = Str::uuid()->toString();
$this->redis = Cache::getRedis();
} }
/** /**