From 2a3c693870951d512d44eb296befd48a592c2bf1 Mon Sep 17 00:00:00 2001 From: Matthew Little Date: Thu, 27 Aug 2020 09:47:43 -0600 Subject: [PATCH] fix: sidecar do not exit while trying to connect to postgres --- src/datastore/postgres-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastore/postgres-store.ts b/src/datastore/postgres-store.ts index 6a8bb01e31..a8e5e15436 100644 --- a/src/datastore/postgres-store.ts +++ b/src/datastore/postgres-store.ts @@ -746,7 +746,7 @@ export class PgDataStore extends (EventEmitter as { new (): DataStoreEventEmitte } finally { client.end(() => {}); } - } while (initTimer.getElapsed() < 30000); + } while (initTimer.getElapsed() < Number.MAX_SAFE_INTEGER); if (!connectionOkay) { connectionError = connectionError ?? new Error('Error connecting to database'); throw connectionError;