Skip to content

Commit

Permalink
修改代码错误
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Dec 20, 2020
1 parent ce4b1eb commit 58cccd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Core/Cache/Handler/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RedisHandler extends HandlerAbstract {
public static function connect($config) : HandlerAbstract {
if (!empty($config['cluster']['enable'])) {
$redis = static::createRedisClusterInstance($config);
} elseif (!empty($config['cluster']['enable'])) {
} elseif (!empty($config['sentinel']['enable'])) {
$redis = static::createRedisSentinel($config);
} else {
$redis = static::createRedis($config);
Expand Down

0 comments on commit 58cccd4

Please sign in to comment.