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

Commit 65600861 by Andy Edwards Committed by GitHub

fix: eliminate usage of Promise.join (#12063)

1 parent cf0e4626
Showing with 3 additions and 3 deletions
......@@ -178,13 +178,13 @@ class ConnectionManager {
debug('connection destroy');
},
destroyAllNow: () => {
return Promise.join(
return Promise.all(
this.pool.read.destroyAllNow(),
this.pool.write.destroyAllNow()
).tap(() => { debug('all connections destroyed'); });
).then(() => { debug('all connections destroyed'); });
},
drain: () => {
return Promise.join(
return Promise.all(
this.pool.write.drain(),
this.pool.read.drain()
);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!