不要怂,就是干,撸起袖子干!

Commit 56d5feeb by Alastair Taft Committed by Sushant

fix(postgres): properly disconnect connections (#9911)

1 parent f04601f2
Showing with 1 additions and 4 deletions
...@@ -184,10 +184,7 @@ class ConnectionManager extends AbstractConnectionManager { ...@@ -184,10 +184,7 @@ class ConnectionManager extends AbstractConnectionManager {
} }
disconnect(connection) { disconnect(connection) {
return new Promise(resolve => { return Promise.fromCallback(callback => connection.end(callback));
connection.end();
resolve();
});
} }
validate(connection) { validate(connection) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!