don't need fallback

This commit is contained in:
meejah 2023-08-11 19:18:23 -06:00
parent 7322d8c0e6
commit c27b330984

View File

@ -772,8 +772,6 @@ class NonReconnector(object):
def getReconnectionInfo(self): def getReconnectionInfo(self):
return ReconnectionInfo() return ReconnectionInfo()
_null_storage = _NullStorage()
class AnnouncementNotMatched(Exception): class AnnouncementNotMatched(Exception):
""" """
@ -915,10 +913,11 @@ def _make_storage_system(
storage_server, storage_server,
) )
# Nothing matched so we can't talk to this server. If we have a # Nothing matched so we can't talk to this server. (There should
# specific reason in "unmatched", use it; otherwise the generic # not be a way to get here without this local being valid)
# one assert unmatched is not None, "Expected unmatched plugin error"
return unmatched or _null_storage return unmatched
@implementer(IServer) @implementer(IServer)
class NativeStorageServer(service.MultiService): class NativeStorageServer(service.MultiService):