in swim/join_sender.go [189:205]
func (j *joinSender) CollectPotentialNodes(nodesJoined []string) []string {
if nodesJoined == nil {
nodesJoined = make([]string, 0)
}
var potentialNodes []string
for _, hostports := range j.bootstrapHostsMap {
for _, hostport := range hostports {
if j.node.address != hostport && !util.StringInSlice(nodesJoined, hostport) {
potentialNodes = append(potentialNodes, hostport)
}
}
}
return potentialNodes
}