mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
Get rid of more callRemoteOnly usage.
This commit is contained in:
parent
63bfff19e9
commit
789a7edb56
@ -475,7 +475,9 @@ class Share(object):
|
||||
# there was corruption somewhere in the given range
|
||||
reason = "corruption in share[%d-%d): %s" % (start, start+offset,
|
||||
str(f.value))
|
||||
self._rref.callRemoteOnly("advise_corrupt_share", reason.encode("utf-8"))
|
||||
self._rref.callRemote(
|
||||
"advise_corrupt_share", reason.encode("utf-8")
|
||||
).addErrback(log.err)
|
||||
|
||||
def _satisfy_block_hash_tree(self, needed_hashes):
|
||||
o_bh = self.actual_offsets["block_hashes"]
|
||||
|
@ -1009,10 +1009,10 @@ class _StorageServer(object):
|
||||
shnum,
|
||||
reason,
|
||||
):
|
||||
return self._rref.callRemoteOnly(
|
||||
self._rref.callRemote(
|
||||
"advise_corrupt_share",
|
||||
share_type,
|
||||
storage_index,
|
||||
shnum,
|
||||
reason,
|
||||
)
|
||||
).addErrback(log.err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user