This commit is contained in:
2021-02-23 17:43:13 +08:00
parent 29fc384741
commit 1c0cd04fcc
6 changed files with 37 additions and 14 deletions
+1 -3
View File
@@ -38,9 +38,7 @@ class ObjectPool extends \Snowflake\Abstracts\Pool
if (is_object($config)) {
return $config;
}
$object = $this->getFromChannel($name = md5($config), [$config, $construct]);
listen(Event::EVENT_AFTER_REQUEST, [$this, 'release'], [$name, $object]);
return $object;
return $this->getFromChannel($name = md5($config), [$config, $construct]);
}