etcdserver/cluster_util.go
func getRemotePeerURLs(cl *membership.RaftCluster, local string) []string {
	us := make([]string, 0)
	for _, m := range cl.Members() {
		if m.Name == local {
			continue
		}
		us = append(us, m.PeerURLs...)
	}
	sort.Strings(us)
	return us
}
func getRemotePeerURLs(cl *membership.RaftCluster, local string) []string {
	us := make([]string, 0)
	for _, m := range cl.Members() {
		if m.Name == local {
			continue
		}
		us = append(us, m.PeerURLs...)
	}
	sort.Strings(us)
	return us
}
func getRemotePeerURLs ( cl * membership . RaftCluster , local string ) [ ] string { us := make ( [ ] string , 0 ) for _ , m := range cl . Members ( ) { if m . Name == local { continue } us = append ( us , m . PeerURLs ... ) } sort . Strings ( us ) return us }
// getRemotePeerURLs returns peer urls of remote members in the cluster. The
// returned list is sorted in ascending lexicographical order.
getRemotePeerURLs returns peer urls of remote members in the cluster . The returned list is sorted in ascending lexicographical order .