mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 01:38:55 +00:00
Add reactor argument.
This commit is contained in:
parent
30a3b006a0
commit
5972a13457
src/allmydata
@ -18,7 +18,6 @@ from twisted.web.iweb import IPolicyForHTTPS
|
||||
from twisted.internet.defer import inlineCallbacks, returnValue, fail, Deferred
|
||||
from twisted.internet.interfaces import IOpenSSLClientConnectionCreator
|
||||
from twisted.internet.ssl import CertificateOptions
|
||||
from twisted.internet import reactor
|
||||
from twisted.web.client import Agent, HTTPConnectionPool
|
||||
from zope.interface import implementer
|
||||
from hyperlink import DecodedURL
|
||||
@ -163,7 +162,7 @@ class StorageClient(object):
|
||||
self._treq = treq
|
||||
|
||||
@classmethod
|
||||
def from_nurl(cls, nurl: DecodedURL, persistent: bool = True) -> "StorageClient":
|
||||
def from_nurl(cls, nurl: DecodedURL, reactor, persistent: bool = True) -> "StorageClient":
|
||||
"""
|
||||
Create a ``StorageClient`` for the given NURL.
|
||||
|
||||
|
@ -1092,7 +1092,7 @@ class _HTTPMixin(_SharedMixin):
|
||||
# state across tests:
|
||||
returnValue(
|
||||
_HTTPStorageServer.from_http_client(
|
||||
StorageClient.from_nurl(nurl, persistent=False)
|
||||
StorageClient.from_nurl(nurl, reactor, persistent=False)
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user