Skip to content

Commit

Permalink
Found some lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
realtyem committed Apr 11, 2023
1 parent 21e96f6 commit 2c25f5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions synapse/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ def request(


class BaseSynapseClient:

def __init__(self, hs: "HomeServer", treq_args: Optional[Dict[str, Any]] = None):
self.clock = hs.get_clock()
self.hs = hs
Expand Down Expand Up @@ -768,8 +767,8 @@ def __init__(
# tends to do so in batches, so we need to allow the pool to keep
# lots of idle connections around.
pool = HTTPConnectionPool(hs.get_reactor())
# XXX: The justification for using the cache factor here is that larger instances
# will need both more cache and more connections.
# XXX: The justification for using the cache factor here is that larger
# instances will need both more cache and more connections.
# Still, this should probably be a separate dial
pool.maxPersistentPerHost = max(int(100 * hs.config.caches.global_factor), 5)
pool.cachedConnectionTimeout = 2 * 60
Expand Down

0 comments on commit 2c25f5d

Please sign in to comment.