consul: Peg Serf proto version to 3

This commit is contained in:
Armon Dadgar 2014-03-05 15:32:59 -08:00
parent 7b1913f3a3
commit ad2d5752c9
2 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,7 @@ func (c *Client) setupSerf(conf *serf.Config, ch chan serf.Event, path string) (
conf.LogOutput = c.config.LogOutput
conf.EventCh = ch
conf.SnapshotPath = filepath.Join(c.config.DataDir, path)
conf.ProtocolVersion = 3 // TODO: Support version 4
if err := ensurePath(conf.SnapshotPath, false); err != nil {
return nil, err
}

View File

@ -175,6 +175,7 @@ func (s *Server) setupSerf(conf *serf.Config, ch chan serf.Event, path string) (
conf.LogOutput = s.config.LogOutput
conf.EventCh = ch
conf.SnapshotPath = filepath.Join(s.config.DataDir, path)
conf.ProtocolVersion = 3 // TODO: Support version 4
if err := ensurePath(conf.SnapshotPath, false); err != nil {
return nil, err
}