mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
Annotate the two fakes that (at least partially) implement RIStorageServer, so they're
easier to find.
This commit is contained in:
parent
2a7e3b3f09
commit
3e0dc94497
@ -96,8 +96,14 @@ class FakeStorage(object):
|
||||
shares[shnum] = f.getvalue()
|
||||
|
||||
|
||||
# This doesn't actually implement the whole interface, but adding a commented
|
||||
# interface implementation annotation for grepping purposes.
|
||||
#@implementer(RIStorageServer)
|
||||
class FakeStorageServer(object):
|
||||
|
||||
"""
|
||||
A fake Foolscap remote object, implemented by overriding callRemote() to
|
||||
call local methods.
|
||||
"""
|
||||
def __init__(self, peerid, storage):
|
||||
self.peerid = peerid
|
||||
self.storage = storage
|
||||
|
@ -122,7 +122,15 @@ class SetDEPMixin(object):
|
||||
}
|
||||
self.node.encoding_params = p
|
||||
|
||||
|
||||
# This doesn't actually implement the whole interface, but adding a commented
|
||||
# interface implementation annotation for grepping purposes.
|
||||
#@implementer(RIStorageServer)
|
||||
class FakeStorageServer(object):
|
||||
"""
|
||||
A fake Foolscap remote object, implemented by overriding callRemote() to
|
||||
call local methods.
|
||||
"""
|
||||
def __init__(self, mode, reactor=None):
|
||||
self.mode = mode
|
||||
self.allocated = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user