Merge pull request #488 from gqxie/dev

fix a spelling mistake
This commit is contained in:
Fury Zhu 2018-12-19 15:47:06 +08:00 committed by GitHub
commit d0517ad499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ public class GlobalExecutor {
public static final long LEADER_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(15L);
public static final long RAMDOM_MS = TimeUnit.SECONDS.toMillis(5L);
public static final long RANDOM_MS = TimeUnit.SECONDS.toMillis(5L);
public static final long TICK_PERIOD_MS = TimeUnit.MILLISECONDS.toMillis(500L);

View File

@ -39,7 +39,7 @@ public class RaftPeer {
public State state = State.FOLLOWER;
public void resetLeaderDue() {
leaderDueMs = GlobalExecutor.LEADER_TIMEOUT_MS + RandomUtils.nextLong(0, GlobalExecutor.RAMDOM_MS);
leaderDueMs = GlobalExecutor.LEADER_TIMEOUT_MS + RandomUtils.nextLong(0, GlobalExecutor.RANDOM_MS);
}
public void resetHeartbeatDue() {