diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index 2e055a888..1c64bce8a 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -154,25 +154,9 @@ class RIStorageServer(RemoteInterface): """ return Any() # returns None now, but future versions might change - def renew_lease(storage_index=StorageIndex, renew_secret=LeaseRenewSecret): - """ - Renew the lease on a given bucket, resetting the timer to 31 days. - Some networks will use this, some will not. If there is no bucket for - the given storage_index, IndexError will be raised. - - For mutable shares, if the given renew_secret does not match an - existing lease, IndexError will be raised with a note listing the - server-nodeids on the existing leases, so leases on migrated shares - can be renewed. For immutable shares, IndexError (without the note) - will be raised. - """ - return Any() - def get_buckets(storage_index=StorageIndex): return DictOf(int, RIBucketReader, maxKeys=MAX_BUCKETS) - - def slot_readv(storage_index=StorageIndex, shares=ListOf(int), readv=ReadVector): """Read a vector from the numbered shares associated with the given @@ -343,14 +327,6 @@ class IStorageServer(Interface): :see: ``RIStorageServer.add_lease`` """ - def renew_lease( - storage_index, - renew_secret, - ): - """ - :see: ``RIStorageServer.renew_lease`` - """ - def get_buckets( storage_index, ): diff --git a/src/allmydata/storage_client.py b/src/allmydata/storage_client.py index b0bcc6835..22dd09bcb 100644 --- a/src/allmydata/storage_client.py +++ b/src/allmydata/storage_client.py @@ -965,17 +965,6 @@ class _StorageServer(object): cancel_secret, ) - def renew_lease( - self, - storage_index, - renew_secret, - ): - return self._rref.callRemote( - "renew_lease", - storage_index, - renew_secret, - ) - def get_buckets( self, storage_index,