Skip to content

Commit

Permalink
Fix: increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 10, 2023
1 parent 1a707ee commit 547c2e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/postgres/core/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 2 additions & 0 deletions internal/postgres/core/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 547c2e4

Please sign in to comment.