diff --git a/src/danog/MadelineProto/Db/Driver/Postgres.php b/src/danog/MadelineProto/Db/Driver/Postgres.php index 0af529a0..a60a589a 100644 --- a/src/danog/MadelineProto/Db/Driver/Postgres.php +++ b/src/danog/MadelineProto/Db/Driver/Postgres.php @@ -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];