Skip to content

Commit 5891e03

Browse files
committed
heads or tails...
1 parent c7af6a5 commit 5891e03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

akka-cluster-sharding/src/main/scala/akka/cluster/sharding/ShardRegion.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ private[akka] class ShardRegion(
768768
// We only make one attempt to one candidate so as to not flood with registration messages
769769
// Important since this is level-triggered (any membership change where the coordinator is on a
770770
// not-up node) while registration is otherwise edge-triggered
771-
coordinatorSelection.lastOption.foreach(sendRegistrationMessage)
771+
coordinatorSelection.headOption.foreach(sendRegistrationMessage)
772772

773773
if (!timers.isTimerActive(RegisterRetry)) {
774774
nextRegistrationDelay = initRegistrationDelay

0 commit comments

Comments
 (0)