Turn ElectionTimeout into a proper singleton
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / behaviors / Follower.java
index bcc2480f459318f35ce3aa30e2d818404626d99b..0a9f3ebd078680ff12a3641ca6960dc831586b48 100644 (file)
@@ -56,7 +56,7 @@ public class Follower extends AbstractRaftActorBehavior {
 
         if(canStartElection()) {
             if (context.getPeerIds().isEmpty() && getLeaderId() == null) {
-                actor().tell(ELECTION_TIMEOUT, actor());
+                actor().tell(ElectionTimeout.INSTANCE, actor());
             } else {
                 scheduleElection(electionDuration());
             }