This commit is contained in:
as2252258@163.com
2021-02-23 00:42:44 +08:00
parent efc11eb506
commit c483738a8f
+3
View File
@@ -34,6 +34,9 @@ class ObjectPool extends \Snowflake\Abstracts\Pool
*/
public function getConnection(array $config, bool $isMaster): mixed
{
if (is_object($config[0])) {
return $config[0];
}
return $this->get(md5($config[0]), $config);
}