From 31d7f116dd4090952f09006ce52db56684066533 Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Wed, 18 Sep 2019 17:45:51 -0400 Subject: [PATCH] nomad/server comments --- nomad/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/server.go b/nomad/server.go index f09594629..158d26a55 100644 --- a/nomad/server.go +++ b/nomad/server.go @@ -1106,8 +1106,8 @@ func (s *Server) setupRaft() error { s.config.RaftConfig.Logger = logger s.config.RaftConfig.LogOutput = nil - // Our version of Raft protocol requires the LocalID to match the network - // address of the transport. + // Our version of Raft protocol 2 requires the LocalID to match the network + // address of the transport. Raft protocol 3 uses permanent ids. s.config.RaftConfig.LocalID = raft.ServerID(trans.LocalAddr()) if s.config.RaftConfig.ProtocolVersion >= 3 { s.config.RaftConfig.LocalID = raft.ServerID(s.config.NodeID)