diff --git a/postgres_pgx/postgres_pgx.go b/postgres_pgx/postgres_pgx.go index 5022b86a..8d2d13ea 100644 --- a/postgres_pgx/postgres_pgx.go +++ b/postgres_pgx/postgres_pgx.go @@ -525,8 +525,8 @@ func Ping_err(ctxMain context.Context) error { ctx, cancelFunc := context.WithTimeout(ctxMain, 1*time.Second) defer cancelFunc() - mutex_Connect.Lock() - defer mutex_Connect.Unlock() + //mutex_Connect.Lock() //убрал т.к. зависает всё + //defer mutex_Connect.Unlock() _, err = Conn.Exec(ctx, ";") return err