mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
Update __init__ of ThreadedConnectionPool
This commit is contained in:
parent
766f06f290
commit
5a8989e0e7
|
@ -174,9 +174,9 @@ class ThreadedConnectionPool(AbstractConnectionPool):
|
|||
of psycopg2
|
||||
"""
|
||||
|
||||
super().__init__(minconn, maxconn, *args, **kwargs)
|
||||
|
||||
import threading
|
||||
AbstractConnectionPool.__init__(
|
||||
self, minconn, maxconn, *args, **kwargs)
|
||||
self._lock = threading.Lock()
|
||||
|
||||
def getconn(self, key=None):
|
||||
|
|
Loading…
Reference in New Issue
Block a user