From 4ba6714cf053569b7a70e6aa73ad935804b3d48e Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Mon, 13 Nov 2023 13:34:27 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20Postgres?= =?UTF-8?q?=20gorm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgres_gorm/postgres_gorm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/postgres_gorm/postgres_gorm.go b/postgres_gorm/postgres_gorm.go index 07afe96c..fde74f34 100644 --- a/postgres_gorm/postgres_gorm.go +++ b/postgres_gorm/postgres_gorm.go @@ -321,6 +321,7 @@ func GetConnection() *gorm.DB { func ping_go() { ticker := time.NewTicker(60 * time.Second) + defer ticker.Stop() addr := Settings.DB_HOST + ":" + Settings.DB_PORT