fix(db): the startup wait closes its probe connection without dropping the error check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 10:01:35 -05:00
co-authored by Claude Opus 5.5
parent 040b90898b
commit 8530b838b0
+1 -1
View File
@@ -38,7 +38,7 @@ func WaitReady(ctx context.Context, dsn string, logger *slog.Logger) error {
if err != nil { if err != nil {
return err return err
} }
defer conn.Close(context.WithoutCancel(ctx)) defer func() { _ = conn.Close(context.WithoutCancel(ctx)) }()
return conn.Ping(actx) return conn.Ping(actx)
}) })
} }