fix: wait for files postgres readiness

This commit is contained in:
Grendgi
2026-06-16 13:22:08 +03:00
parent 79eac4d251
commit dff97c55dc
3 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ func main() {
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()
pool, err := commondb.ConnectWithRetry(ctx, cfg.DatabaseURL, 2*time.Minute)
pool, err := commondb.ConnectWithRetry(ctx, cfg.DatabaseURL, 10*time.Minute)
if err != nil {
slog.Error("connect database", "error", err)
os.Exit(1)