From 8530b838b0e901089df5656b727dc5dd7ae6942e Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 25 Nov 2026 10:01:35 -0500 Subject: [PATCH] fix(db): the startup wait closes its probe connection without dropping the error check Co-Authored-By: Claude Opus 5.5 --- internal/db/wait.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/wait.go b/internal/db/wait.go index 19d45590..6f663100 100644 --- a/internal/db/wait.go +++ b/internal/db/wait.go @@ -38,7 +38,7 @@ func WaitReady(ctx context.Context, dsn string, logger *slog.Logger) error { if err != nil { return err } - defer conn.Close(context.WithoutCancel(ctx)) + defer func() { _ = conn.Close(context.WithoutCancel(ctx)) }() return conn.Ping(actx) }) }