Create new postgres pool

This commit is contained in:
Daniil Gentili 2020-10-23 18:05:29 +02:00
parent b0d25f53cb
commit 901dc39d93
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -45,7 +45,7 @@ class Postgres
->withDatabase($settings->getDatabase());
yield from static::createDb($config);
static::$connections[$dbKey] = pool($config, $settings->getMaxConnections(), $settings->getIdleTimeout());
static::$connections[$dbKey] = new Pool($config, $settings->getMaxConnections(), $settings->getIdleTimeout());
}
return static::$connections[$dbKey];