Skip to content

Commit 9db419d

Browse files
committed
fixup! fix(server): retry initial connection to postgres
1 parent 2b783f5 commit 9db419d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/server.go

+2
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,8 @@ func connectToPostgres(ctx context.Context, logger slog.Logger, driver string, d
17591759
logger.Warn(ctx, "ping postgres; retrying", slog.Error(err), slog.F("try", tries))
17601760
continue
17611761
}
1762+
1763+
break
17621764
}
17631765
if err != nil {
17641766
return nil, xerrors.Errorf("connect to postgres; tries %d; last error: %w", tries, err)

0 commit comments

Comments
 (0)