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

Commit e70d354f by Mick Hansen

Merge pull request #1251 from evantahler/master

pool settings are not transported down to replica connections
2 parents 0914cd79 8f6bba5a
Showing with 1 additions and 1 deletions
...@@ -289,7 +289,7 @@ module.exports = (function() { ...@@ -289,7 +289,7 @@ module.exports = (function() {
connection.query("SET time_zone = '+0:00'"); connection.query("SET time_zone = '+0:00'");
// client.setMaxListeners(self.maxConcurrentQueries) // client.setMaxListeners(self.maxConcurrentQueries)
this.isConnecting = false this.isConnecting = false
if (config.pool.handleDisconnects) { if (config.pool != null && config.pool.handleDisconnects) {
handleDisconnect(this.pool, connection) handleDisconnect(this.pool, connection)
} }
done(null, connection) done(null, connection)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!