mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 07:23:04 +00:00
Suppress errors in no_network
This commit is contained in:
parent
53ff740f0e
commit
7507e84a18
@ -67,7 +67,7 @@ class Marker(object):
|
|||||||
|
|
||||||
fireNow = partial(defer.succeed, None)
|
fireNow = partial(defer.succeed, None)
|
||||||
|
|
||||||
@implementer(IRemoteReference)
|
@implementer(IRemoteReference) # type: ignore # todo: write stubs for foolscap
|
||||||
class LocalWrapper(object):
|
class LocalWrapper(object):
|
||||||
"""
|
"""
|
||||||
A ``LocalWrapper`` presents the remote reference interface to a local
|
A ``LocalWrapper`` presents the remote reference interface to a local
|
||||||
@ -212,9 +212,12 @@ class NoNetworkServer(object):
|
|||||||
return _StorageServer(lambda: self.rref)
|
return _StorageServer(lambda: self.rref)
|
||||||
def get_version(self):
|
def get_version(self):
|
||||||
return self.rref.version
|
return self.rref.version
|
||||||
|
def start_connecting(self, trigger_cb):
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
@implementer(IStorageBroker)
|
@implementer(IStorageBroker)
|
||||||
class NoNetworkStorageBroker(object):
|
class NoNetworkStorageBroker(object): # type: ignore # missing many methods
|
||||||
def get_servers_for_psi(self, peer_selection_index):
|
def get_servers_for_psi(self, peer_selection_index):
|
||||||
def _permuted(server):
|
def _permuted(server):
|
||||||
seed = server.get_permutation_seed()
|
seed = server.get_permutation_seed()
|
||||||
@ -258,7 +261,7 @@ def create_no_network_client(basedir):
|
|||||||
return defer.succeed(client)
|
return defer.succeed(client)
|
||||||
|
|
||||||
|
|
||||||
class _NoNetworkClient(_Client):
|
class _NoNetworkClient(_Client): # type: ignore # Cannot determine consistent MRO order
|
||||||
"""
|
"""
|
||||||
Overrides all _Client networking functionality to do nothing.
|
Overrides all _Client networking functionality to do nothing.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user