added default reft listen
This commit is contained in:
parent
cef74df3e8
commit
8104009bdc
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ func Validate(c *Config) error {
|
||||||
return errors.New("missing raft.id config")
|
return errors.New("missing raft.id config")
|
||||||
}
|
}
|
||||||
if raft.Listen == "" {
|
if raft.Listen == "" {
|
||||||
return errors.New("missing raft.listen config")
|
raft.Listen = RaftListen
|
||||||
}
|
}
|
||||||
if len(raft.Peers) < 2 {
|
if len(raft.Peers) < 2 {
|
||||||
return errors.New("minimum number of remote peers: 2")
|
return errors.New("minimum number of remote peers: 2")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue