mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:39:26 -05:00
Correctly pass connection pool parameter
This commit is contained in:
parent
0f118e55db
commit
79e37a7ecb
@ -58,7 +58,7 @@ class SimpleHttpClient(object):
|
||||
# 'like a browser'
|
||||
pool = HTTPConnectionPool(reactor)
|
||||
pool.maxPersistentPerHost = 10
|
||||
self.agent = Agent(reactor, pool)
|
||||
self.agent = Agent(reactor, pool=pool)
|
||||
self.version_string = hs.version_string
|
||||
|
||||
def request(self, method, *args, **kwargs):
|
||||
|
@ -105,7 +105,7 @@ class MatrixFederationHttpClient(object):
|
||||
self.server_name = hs.hostname
|
||||
pool = HTTPConnectionPool(reactor)
|
||||
pool.maxPersistentPerHost = 10
|
||||
self.agent = MatrixFederationHttpAgent(reactor, pool)
|
||||
self.agent = MatrixFederationHttpAgent(reactor, pool=pool)
|
||||
self.clock = hs.get_clock()
|
||||
self.version_string = hs.version_string
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user