mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
QueenCoordinatorConfig declared enableFailover (default true) and maxDelegationAttempts (default 3), but selectBackupAgents() ignored both and hardcoded a cap of 2 backups. selectBackupAgents() now returns no backups when enableFailover is false and caps backups at max(0, maxDelegationAttempts - 1), counting the primary as the first attempt. The defaults give 2, so default behavior is unchanged. Co-Authored-By: RuFlo <ruv@ruv.net>