Upstream code should make sure this doesn't happen.

This commit is contained in:
Itamar Turner-Trauring 2023-05-22 13:03:46 -04:00
parent 084499dd4b
commit 71cb357f45

View File

@ -1239,6 +1239,7 @@ class HTTPNativeStorageServer(service.MultiService):
if handler == "tcp":
return None
if handler == "tor":
assert self._tor_provider is not None
tor_instance = await self._tor_provider.get_tor_instance(self._reactor)
def agent_factory(reactor: object, tls_context_factory: IPolicyForHTTPS, pool: HTTPConnectionPool) -> IAgent: