No need to have it the constructor, just inline the initialization.
Change-Id: Ife07c58baee22a503b1b4b4bbcd4c8fa8bb317dd
Signed-off-by: Robert Varga <rovarga@cisco.com>
@VisibleForTesting
static final Object ISOLATED_LEADER_CHECK = new Object();
- private final Stopwatch isolatedLeaderCheck;
+ private final Stopwatch isolatedLeaderCheck = Stopwatch.createStarted();
private @Nullable LeadershipTransferContext leadershipTransferContext;
public Leader(RaftActorContext context) {
super(context, RaftState.Leader);
- isolatedLeaderCheck = Stopwatch.createStarted();
}
@Override