forked from mtusi2026/mtusi2026lab3
feat: add HAproxy and 2 api instances
This commit is contained in:
@@ -52,10 +52,6 @@ func OpenDatabase(ctx context.Context) (*pgxpool.Pool, error) {
|
||||
db.Close()
|
||||
return nil, err
|
||||
}
|
||||
if err = RunMigrations(url, "up"); err != nil {
|
||||
db.Close()
|
||||
return nil, err
|
||||
}
|
||||
return db, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user