From 901dc39d93170125788210ef5040973fb5ab938d Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 23 Oct 2020 18:05:29 +0200 Subject: [PATCH] Create new postgres pool --- src/danog/MadelineProto/Db/Driver/Postgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];