From 6c208582808a2600e44f79c53d69a65aea6e8345 Mon Sep 17 00:00:00 2001 From: pigwin Date: Sat, 4 Jan 2025 21:30:01 +0000 Subject: [PATCH] remove database connection pool settings from ConnectToPostgreSQL function --- config/db.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/db.go b/config/db.go index 35686ab..ac747fc 100644 --- a/config/db.go +++ b/config/db.go @@ -28,15 +28,6 @@ func ConnectToPostgreSQL() (*sql.DB, error) { fmt.Println("Connection to PostgreSQL opened successfully :D") - // Set the maximum number of open connections to 20 - db.SetMaxOpenConns(20) - - // Set the maximum number of idle connections to 10 - db.SetMaxIdleConns(10) - - // Set the maximum connection lifetime to 1 hour - db.SetConnMaxLifetime(1 * time.Hour) - // Ping database to verify connection err = db.Ping()