Browse Source

http: use sort.Strings

Yicheng Qin 11 years ago
parent
commit
01871e7c29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdserver/etcdhttp/http.go

+ 1 - 1
etcdserver/etcdhttp/http.go

@@ -215,7 +215,7 @@ func (h Handler) serveMachines(w http.ResponseWriter, r *http.Request) {
 			urls = append(urls, addScheme(addr))
 		}
 	}
-	sort.Sort(sort.StringSlice(urls))
+	sort.Strings(urls)
 	w.Write([]byte(strings.Join(urls, ", ")))
 }