Skip to content

Commit 0d6e56b

Browse files
committed
报错内容是 protocol error, got 'H' as reply type byte
1 parent 37b53a5 commit 0d6e56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Watcher/RedisWatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function close(): void
8686
*/
8787
private function createRedisClient(array $config): Client
8888
{
89-
$redis = new Client('redis://' . $config['host'] ?? '127.0.0.1' . ':' . $config['port'] ?? 6379);
89+
$redis = new Client('redis://' . ($config['host'] ?? '127.0.0.1') . ':' . ($config['port'] ?? 6379));
9090
$redis->auth($config['password'] ?? '');
9191

9292
return $redis;

0 commit comments

Comments
 (0)