Get rid of more callRemoteOnly usage.

This commit is contained in:
Itamar Turner-Trauring 2021-09-02 15:21:42 -04:00
parent 63bfff19e9
commit 789a7edb56
2 changed files with 5 additions and 3 deletions

View File

@ -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"]

View File

@ -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)