This commit is contained in:
2020-09-05 01:29:46 +08:00
parent 2b000a6ecf
commit d2320bead7
3 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class Redis extends Pool
$this->success('create redis client -> ' . $config['host'] . ':' . $this->size($coroutineName));
return $this->saveClient($coroutineName, $this->createConnect($config));
}
[$time, $client] = $this->get($coroutineName, -1);
[$time, $client] = $this->get($coroutineName);
if ($client === null) {
return $this->getByChannel($coroutineName, $config);
}