1
0
Fork 0
mirror of synced 2024-09-14 16:38:28 +12:00

reclaim pool

This commit is contained in:
Damodar Lohani 2024-03-04 12:50:49 +00:00
parent 5f4970befd
commit 5e6f53d6aa

View file

@ -1161,7 +1161,7 @@ App::setResource('dbForConsole', function (Group $pools, Cache $cache) {
->setMetadata('host', \gethostname()) ->setMetadata('host', \gethostname())
->setMetadata('project', 'console') ->setMetadata('project', 'console')
->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS); ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS);
$pools->get('console')->reclaim();
return $database; return $database;
}, ['pools', 'cache']); }, ['pools', 'cache']);