This commit is contained in:
2023-04-18 23:47:31 +08:00
parent 88c2c430c6
commit af284dbe4b
6 changed files with 62 additions and 37 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ SCRIPT;
try {
$response = $client->{$name}(...$arguments);
} catch (\Throwable $throwable) {
$response = \Kiri::getLogger()->addError($throwable->getMessage());
$response = addError($throwable, 'redis');
} finally {
$pool = Kiri::getDi()->get(Pool::class);
$pool->push($this->host, $client);