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

Commit 31f4bd7

Browse files
authored
Merge pull request #613 from kloining/hotfix/fix-redis-connection-config-path
Fix wrong redis replication connection config path
2 parents ab99f3f + 904a97c commit 31f4bd7

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
@@ -487,7 +487,7 @@ public function onMessage(string $redisChannel, string $payload)
487487
*/
488488
protected function getConnectionUri()
489489
{
490-
$name = config('websockets.replication.redis.connection', 'default');
490+
$name = config('websockets.replication.modes.redis.connection', 'default');
491491
$config = config("database.redis.{$name}");
492492

493493
$host = $config['host'];
@@ -500,7 +500,7 @@ protected function getConnectionUri()
500500
}
501501

502502
if ($config['database']) {
503-
$query['database'] = $config['database'];
503+
$query['db'] = $config['database'];
504504
}
505505

506506
$query = http_build_query($query);

0 commit comments

Comments
 (0)