Skip to content

Commit

Permalink
报错内容是 protocol error, got 'H' as reply type byte
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan committed Jun 13, 2022
1 parent 37b53a5 commit 0d6e56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Watcher/RedisWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function close(): void
*/
private function createRedisClient(array $config): Client
{
$redis = new Client('redis://' . $config['host'] ?? '127.0.0.1' . ':' . $config['port'] ?? 6379);
$redis = new Client('redis://' . ($config['host'] ?? '127.0.0.1') . ':' . ($config['port'] ?? 6379));
$redis->auth($config['password'] ?? '');

return $redis;
Expand Down

0 comments on commit 0d6e56b

Please sign in to comment.