Forráskód Böngészése

http: use sort.Strings

Yicheng Qin 11 éve
szülő
commit
01871e7c29
1 módosított fájl, 1 hozzáadás és 1 törlés
  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, ", ")))
 }