mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: minor change on code
This commit is contained in:
parent
7c3e202c94
commit
431ff3cce1
@ -195,7 +195,7 @@ func (n *Node) Next() []Entry {
|
||||
// If the current elapsed is greater or equal than the timeout,
|
||||
// node will send corresponding message to the statemachine.
|
||||
func (n *Node) Tick() {
|
||||
if n.sm.promotable == false {
|
||||
if !n.sm.promotable {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user