Skip to content

Commit

Permalink
Fix queues growth when no peers are ready
Browse files Browse the repository at this point in the history
The queue growth function spots when there are insufficent
peers and logs a message but the return statement is missing
  • Loading branch information
Liam Young committed Oct 16, 2023
1 parent 94ef982 commit 8ecb720
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ def grow_queues_onto_unit(self, unit) -> None:
queue_members = [len(q["members"]) for q in api.list_quorum_queues()]
if not queue_members:
logging.debug("No queues found, queue growth skipped")
return
queue_members.sort()
selector = self.get_queue_growth_selector(
queue_members[0], queue_members[-1]
Expand Down

0 comments on commit 8ecb720

Please sign in to comment.