
参考: https://github.com/shishujuan/mit6.824-2017-raft.git
raft.go @Make
- 初始化 rf
1 |
state=Follower |
- 启动 bot
1 |
electionTimeout := getRandomElectionTimeout() // 范围 {300 + [0,100)}ms |

参考: https://github.com/shishujuan/mit6.824-2017-raft.git
raft.go @Make
1 |
state=Follower |
1 |
electionTimeout := getRandomElectionTimeout() // 范围 {300 + [0,100)}ms |
近期评论