From 69b98f171e1f582ae6a34842cda1698d2102adb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 20 Feb 2021 11:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/Redis.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index b5d9d388..ed816359 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -156,9 +156,7 @@ class Redis extends Pool public function checkCanUse(string $name, int $time, mixed $client): bool { try { - if ($time + 60 * 10 < time()) { - $result = false; - } else if (!($client instanceof SRedis)) { + if (!($client instanceof SRedis)) { $result = false; } else if (!$client->isConnected() || !$client->ping('connect.')) { $result = false;