Caught bug in f-resilient quorum computation.

This commit is contained in:
Michael Whittaker 2021-02-02 23:01:04 -08:00
parent bdd4e8925e
commit ef292ba35e

View file

@ -244,7 +244,7 @@ class QuorumSystem(Generic[T]):
else:
xs = list(self.elements())
read_quorums = list(self._f_resilient_quorums(f, xs, self.reads))
write_quorums = list(self._f_resilient_quorums(f, xs, self.reads))
write_quorums = list(self._f_resilient_quorums(f, xs, self.writes))
if len(read_quorums) == 0:
raise NoStrategyFoundError(
f'There are no {f}-resilient read quorums')