From c8ca9dd63477ab7ab2acdb008bb30b9c0990f068 Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Mon, 5 May 2025 16:25:12 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20//ping?= =?UTF-8?q?=20=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20=D0=BD=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C=D0=B7=D1=8F=20=D1=82.=D0=BA.=20data=20race?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgres_pgx/postgres_pgx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres_pgx/postgres_pgx.go b/postgres_pgx/postgres_pgx.go index 841c6a28..29afdf50 100644 --- a/postgres_pgx/postgres_pgx.go +++ b/postgres_pgx/postgres_pgx.go @@ -423,7 +423,7 @@ loop: // GetConnection - возвращает соединение к нужной базе данных func GetConnection() *pgx.Conn { - if Conn == nil || GetConnection().IsClosed() { + if Conn == nil || Conn.IsClosed() { err := Connect_err() if err != nil { log.Error("POSTGRES pgx Connect() to database host: ", Settings.DB_HOST, ", error: ", err)