mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
Linting
This commit is contained in:
parent
02baff3f79
commit
37d6bc9de9
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
from typing import List
|
||||||
import gevent
|
import gevent
|
||||||
from geventconnpool import ConnectionPool
|
from geventconnpool import ConnectionPool
|
||||||
from epplibwrapper.socket import Socket
|
from epplibwrapper.socket import Socket
|
||||||
|
@ -32,7 +33,7 @@ class EPPConnectionPool(ConnectionPool):
|
||||||
self._login = login
|
self._login = login
|
||||||
|
|
||||||
# Keep track of each greenlet
|
# Keep track of each greenlet
|
||||||
self.greenlets = []
|
self.greenlets: List[gevent.Greenlet] = []
|
||||||
|
|
||||||
# Define optional pool settings.
|
# Define optional pool settings.
|
||||||
# Kept in a dict so that the parent class,
|
# Kept in a dict so that the parent class,
|
||||||
|
@ -55,7 +56,7 @@ class EPPConnectionPool(ConnectionPool):
|
||||||
if "spawn_frequency" in options:
|
if "spawn_frequency" in options:
|
||||||
self.spawn_frequency = options["spawn_frequency"]
|
self.spawn_frequency = options["spawn_frequency"]
|
||||||
|
|
||||||
self.conn = deque()
|
self.conn: deque = deque()
|
||||||
self.lock = BoundedSemaphore(self.size)
|
self.lock = BoundedSemaphore(self.size)
|
||||||
|
|
||||||
self.populate_all_connections()
|
self.populate_all_connections()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue