Skip to content

Commit

Permalink
Use well named variable to make code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
brainix committed Dec 4, 2020
1 parent 04a7495 commit 647fe46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pottery/nextid.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def __current_id(self) -> int:
current_ids.append(int(future.result()))
except Exception as error:
_logger.error(error, exc_info=True)
if len(current_ids) < len(self.masters) // 2 + 1:
num_masters_gotten = len(current_ids)
if num_masters_gotten < len(self.masters) // 2 + 1:
raise QuorumNotAchieved(self.masters, self.key)
else:
return max(current_ids)
Expand Down

0 comments on commit 647fe46

Please sign in to comment.