Skip to content

Commit a9c6f0e

Browse files
committed
fix: implement _remove
1 parent cd6494c commit a9c6f0e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Known incompatibilities:
4848

4949
* `connection.processID` not implemented
5050
* `pool._pulseQueue` not implemented
51-
* `pool._remove` not implemented
5251

5352
Please submit PR if you require additional compatibility.
5453

src/bridge.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export const createBridge = (postgres: typeof Postgres) => {
127127
// TODO implement logic equivalent to https://github.com/brianc/node-postgres/blob/master/packages/pg-pool/index.js#L109-L152
128128
}
129129

130-
public _remove () {
131-
// TODO implement logic equivalent to https://github.com/brianc/node-postgres/blob/master/packages/pg-pool/index.js#L154-L164
130+
public async _remove (client: {end: () => Promise<void>, }) {
131+
await client.end();
132132
}
133133

134134
public get idleCount () {

0 commit comments

Comments
 (0)