Skip to content

Commit 2bc777a

Browse files
committed
imp: automatic notification restart after postgres server kill
* If a connection ends, try actively fix the problem
1 parent a78fdb1 commit 2bc777a

File tree

5 files changed

+45
-2
lines changed

5 files changed

+45
-2
lines changed

lib/pgDb.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export declare class PgDb extends QueryAble {
8080
notify(channel: string, payload?: string): Promise<any[]>;
8181
runRestartConnectionForListen(): Promise<Error>;
8282
needToFixConnectionForListen(): boolean;
83+
private tryToFixConnectionForListenActively;
8384
private initConnectionForListen;
8485
}
8586
export default PgDb;

lib/pgDb.js

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)