context.transition(FollowerController.class);
}
// If the vote request is not for this candidate then reject the vote.
if (!request.candidate().equals(context.clusterManager().localNode().member().id())) {
return CompletableFuture.completedFuture(logResponse(new PollResponse(logRequest(request).id(), context.currentTerm(), false)));
} else {
return super.poll(request);
}
}