Enable --pre-vote=true by default in 3.5.

This commit is contained in:
Piotr Tabor
2021-03-12 16:23:23 +01:00
parent 4eba403ccc
commit 54189f2f60
3 changed files with 3 additions and 3 deletions

View File

@@ -239,7 +239,6 @@ type Config struct {
// If enabled, Raft runs an additional election phase
// to check whether it would get enough votes to win
// an election, thus minimizing disruptions.
// TODO: enable by default in 3.5.
PreVote bool `json:"pre-vote"`
CORS map[string]struct{}
@@ -436,7 +435,7 @@ func NewConfig() *Config {
BcryptCost: uint(bcrypt.DefaultCost),
AuthTokenTTL: 300,
PreVote: false, // TODO: enable by default in v3.5
PreVote: true,
loggerMu: new(sync.RWMutex),
logger: nil,