Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 65600861
authored
Apr 04, 2020
by
Andy Edwards
Committed by
GitHub
Apr 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: eliminate usage of Promise.join (#12063)
1 parent
cf0e4626
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
lib/dialects/abstract/connection-manager.js
lib/dialects/abstract/connection-manager.js
View file @
6560086
...
...
@@ -178,13 +178,13 @@ class ConnectionManager {
debug
(
'connection destroy'
);
},
destroyAllNow
:
()
=>
{
return
Promise
.
join
(
return
Promise
.
all
(
this
.
pool
.
read
.
destroyAllNow
(),
this
.
pool
.
write
.
destroyAllNow
()
).
t
ap
(()
=>
{
debug
(
'all connections destroyed'
);
});
).
t
hen
(()
=>
{
debug
(
'all connections destroyed'
);
});
},
drain
:
()
=>
{
return
Promise
.
join
(
return
Promise
.
all
(
this
.
pool
.
write
.
drain
(),
this
.
pool
.
read
.
drain
()
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment