etcdserver: remove TODO to delete URLStringsEqual

Discovery SRV supports to compare IP addresses with domain names,
so we need URLStringsEqual function.
release-2.1
Yicheng Qin 2015-08-21 09:51:07 -07:00
parent bbefb0ad0b
commit 89640cf08f
2 changed files with 0 additions and 2 deletions

View File

@ -421,7 +421,6 @@ func ValidateClusterAndAssignIDs(local *cluster, existing *cluster) error {
sort.Sort(MembersByPeerURLs(lms))
for i := range ems {
// TODO: Remove URLStringsEqual after improvement of using hostnames #2150 #2123
if !netutil.URLStringsEqual(ems[i].PeerURLs, lms[i].PeerURLs) {
return fmt.Errorf("unmatched member while checking PeerURLs")
}

View File

@ -89,7 +89,6 @@ func (c *ServerConfig) verifyLocalMember(strict bool) error {
}
// Advertised peer URLs must match those in the cluster peer list
// TODO: Remove URLStringsEqual after improvement of using hostnames #2150 #2123
apurls := c.PeerURLs.StringSlice()
sort.Strings(apurls)
urls.Sort()