This commit is contained in:
2021-02-15 13:23:17 +08:00
parent adfff248e7
commit 727d9aa216
+1 -1
View File
@@ -124,7 +124,7 @@ abstract class Pool extends Component
*/ */
public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|null public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|null
{ {
if (!$this->hasItem($coroutineName)) { if ($this->hasItem($coroutineName)) {
return $this->get($coroutineName)[1]; return $this->get($coroutineName)[1];
} }
if (Context::hasContext('create:connect:' . $coroutineName)) { if (Context::hasContext('create:connect:' . $coroutineName)) {