From 547c2e455f7f31e1f994d66cbc9742c15047dfbe Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 10 Oct 2023 22:44:14 +0200 Subject: [PATCH] Fix: increase timeout --- internal/postgres/core/index.go | 1 - internal/postgres/core/postgres.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/postgres/core/index.go b/internal/postgres/core/index.go index 5bd3f6ba1..4030a25c5 100644 --- a/internal/postgres/core/index.go +++ b/internal/postgres/core/index.go @@ -13,7 +13,6 @@ import ( func (p *Postgres) CreateIndex(ctx context.Context, name, columns string, model any) error { _, err := p.DB.NewCreateIndex(). Model(model). - Concurrently(). IfNotExists(). Index(name). ColumnExpr(columns). diff --git a/internal/postgres/core/postgres.go b/internal/postgres/core/postgres.go index 17aebb437..2f1342b10 100644 --- a/internal/postgres/core/postgres.go +++ b/internal/postgres/core/postgres.go @@ -70,6 +70,8 @@ func connectionOptions(cfg Config, schema string, appName string) ([]pgdriver.Op })) } + opts = append(opts, pgdriver.WithTimeout(time.Minute*10)) + return opts, nil }