Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PyMySQL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
PyMySQL
Commits
18a8bfb94315
Commit
18a8bfb94315
authored
10 years ago
by
INADA Naoki
Browse files
Options
Downloads
Patches
Plain Diff
nit fix
parent
d4bbff24b181
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tornado_mysql/pools.py
+2
-1
2 additions, 1 deletion
tornado_mysql/pools.py
with
2 additions
and
1 deletion
tornado_mysql/pools.py
+
2
−
1
View file @
18a8bfb9
...
...
@@ -6,7 +6,7 @@
from
tornado.ioloop
import
IOLoop
from
tornado.gen
import
coroutine
,
Return
from
tornado.concurrent
import
Future
,
chain_future
from
tornado.concurrent
import
Future
from
tornado_mysql
import
connect
from
tornado_mysql.connections
import
Connection
...
...
@@ -55,6 +55,7 @@
self
.
_waitings
=
deque
()
def
stat
(
self
):
"""
Returns (opened connections, free connections, waiters)
"""
return
(
self
.
_opened_conns
,
len
(
self
.
_free_conn
),
len
(
self
.
_waitings
))
def
_get_conn
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment