Merge pull request #613 from kloining/hotfix/fix-redis-connection-config-path

Fix wrong redis replication connection config path
This commit is contained in:
rennokki 2020-11-20 11:51:26 +02:00 committed by GitHub
commit 31f4bd7f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -487,7 +487,7 @@ class RedisChannelManager extends LocalChannelManager
*/ */
protected function getConnectionUri() protected function getConnectionUri()
{ {
$name = config('websockets.replication.redis.connection', 'default'); $name = config('websockets.replication.modes.redis.connection', 'default');
$config = config("database.redis.{$name}"); $config = config("database.redis.{$name}");
$host = $config['host']; $host = $config['host'];
@ -500,7 +500,7 @@ class RedisChannelManager extends LocalChannelManager
} }
if ($config['database']) { if ($config['database']) {
$query['database'] = $config['database']; $query['db'] = $config['database'];
} }
$query = http_build_query($query); $query = http_build_query($query);