Remove copy pasted duplicate line, update documentation.

pull/3403/head
Preetha Appan 7 years ago
parent 276f26ea70
commit c6ee9bfa69

@ -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()
}

@ -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.

Loading…
Cancel
Save