From 28ca6216d25dba434483b6fb83684bd3ecf79e38 Mon Sep 17 00:00:00 2001 From: Jiahao Huang Date: Fri, 23 Mar 2018 09:54:25 +0800 Subject: [PATCH] raft.rs: revoke pub of pre_vote,can set it in Config --- src/raft.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raft.rs b/src/raft.rs index ed21a50f5..22f8d9f1f 100644 --- a/src/raft.rs +++ b/src/raft.rs @@ -224,7 +224,7 @@ pub struct Raft { heartbeat_elapsed: usize, pub check_quorum: bool, - pub pre_vote: bool, + pre_vote: bool, skip_bcast_commit: bool, heartbeat_timeout: usize,