Skip to content

Commit

Permalink
fix: sidecar do not exit while trying to connect to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Aug 27, 2020
1 parent 926fc00 commit 2a3c693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datastore/postgres-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a3c693

Please sign in to comment.