Remove copy pasted duplicate line, update documentation.

This commit is contained in:
Preetha Appan 2017-08-30 10:02:10 -05:00
parent aadaae1d2d
commit a215c764cd
2 changed files with 2 additions and 4 deletions

View File

@ -139,9 +139,6 @@ func (s *Server) lanNodeJoin(me serf.MemberEvent) {
s.maybeBootstrap()
}
// Update id to address map
s.serverLookup.AddServer(serverMeta)
// Kick the join flooders.
s.FloodNotify()
}

View File

@ -166,7 +166,8 @@ type Server struct {
// which SHOULD only consist of Consul servers
serfWAN *serf.Serf
// serverLookup provides fast and thread-safe lookup by id and address
// serverLookup tracks server consuls in the local datacenter.
// Used to do leader forwarding and provide fast lookup by server id and address
serverLookup *ServerLookup
// floodLock controls access to floodCh.