This commit is contained in:
2023-08-18 15:05:05 +08:00
parent 1fb13aa3a3
commit 6283d6cd49
-4
View File
@@ -158,10 +158,6 @@ class Connection extends Component
throw new Exception('Pool waite timeout at ' . $this->waite_time);
}
if (is_object($data)) {
return $data;
}
[$client, $time] = $data;
if ((time() - $time) < $this->idle_time && $this->canUse($client)) {
return $client;