aprs.me/lib/aprsme/cluster
Graham McIntire 401d43be62
refactor: pattern-match LeaderElection init and cluster-status dispatch
- get_cluster_aprs_status: fetch_cluster_status/1 dispatches on the
  clustering flag — true fans out cluster-wide, false goes straight to
  the local Aprsme.Is status.
- init/1: extract schedule_initial_election/1 with true/false heads.
  The clustered branch sets up the check-and-backstop timers; the
  non-clustered branch queues an immediate election. Makes the two
  startup paths obvious from the function signatures.

No behavior change; all 17 LeaderElection tests still pass.
2026-04-23 14:56:07 -05:00
..
connection_manager.ex refactor: leadership_change handler pattern-matches instead of cond 2026-04-23 14:27:49 -05:00
leader_election.ex refactor: pattern-match LeaderElection init and cluster-status dispatch 2026-04-23 14:56:07 -05:00
packet_distributor.ex refactor: collapse nested if/case into pattern-matched helpers 2026-04-23 13:55:11 -05:00
packet_receiver.ex chore(dialyzer): enable stricter flags and fix 97 resulting findings 2026-04-21 10:07:01 -05:00
topology.ex refactor: collapse nested if/case into pattern-matched helpers 2026-04-23 13:55:11 -05:00