This commit is contained in:
2021-07-21 11:25:31 +08:00
parent 3b05c856ef
commit 8f6079b040
9 changed files with 201 additions and 112 deletions
+1 -2
View File
@@ -7,6 +7,7 @@ namespace Database;
use Annotation\IAnnotation;
use Exception;
use ReflectionException;
use Server\Constant;
use Snowflake\Abstracts\Providers;
use Snowflake\Application;
use Snowflake\Event;
@@ -38,7 +39,6 @@ class DatabasesProviders extends Providers
$this->_pooLength = Config::get('databases.pool', ['min' => 0, 'max' => 1]);
Event::on(Event::SERVER_TASK_START, [$this, 'createPool']);
Event::on(Event::SERVER_WORKER_START, [$this, 'createPool']);
}
@@ -80,7 +80,6 @@ class DatabasesProviders extends Providers
/**
* @param $database
* @return array
* @throws \Snowflake\Exception\ConfigException
*/
private function _settings($database): array
{