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:
+1
-1
@@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user