summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/queue.py
diff options
context:
space:
mode:
authorFantix King <fantix.king@gmail.com>2020-08-31 03:41:00 -0400
committersqla-tester <sqla-tester@sqlalchemy.org>2020-08-31 03:41:00 -0400
commitcae33a79017d955c7a35bf1810c18e13fd00b4f3 (patch)
treea0309c92ffd35a58a9f013911941af5234bb2467 /lib/sqlalchemy/util/queue.py
parent575b6dded9a25fca693f0aa7f6d7c6e735490460 (diff)
downloadsqlalchemy-cae33a79017d955c7a35bf1810c18e13fd00b4f3.tar.gz
Fix AsyncEngine connect() bug when pool is exhausted
### Description Decorating the referenced `await_fallback` with `staticmethod` would stop `AsyncAdaptedQueue.await_` from being treated as a bound method. ### Checklist This pull request is: - [x] A short code fix Fixes #5546 **Have a nice day!** Closes: #5547 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5547 Pull-request-sha: 6f18ee290e7d9fe24ce2a4a4ed8069b46082ca18 Change-Id: Ie335ee650f1dee0d1fce59e448217a48307b3435
Diffstat (limited to 'lib/sqlalchemy/util/queue.py')
-rw-r--r--lib/sqlalchemy/util/queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/queue.py b/lib/sqlalchemy/util/queue.py
index 5f71c7bd6..58a88e4ed 100644
--- a/lib/sqlalchemy/util/queue.py
+++ b/lib/sqlalchemy/util/queue.py
@@ -202,7 +202,7 @@ class Queue:
class AsyncAdaptedQueue:
- await_ = await_fallback
+ await_ = staticmethod(await_fallback)
def __init__(self, maxsize=0, use_lifo=False):
if use_lifo: