From a6cecc6b5f6a89f13ab0cef11a85762679615478 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 7 Jul 2016 14:14:59 +1000 Subject: [PATCH] missinggo.Sort->SortSlice --- torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent.go b/torrent.go index 3fa662c1..af6b2f25 100644 --- a/torrent.go +++ b/torrent.go @@ -442,7 +442,7 @@ func (t *Torrent) writeStatus(w io.Writer, cl *Client) { fmt.Fprintf(w, "Pending peers: %d\n", len(t.peers)) fmt.Fprintf(w, "Half open: %d\n", len(t.halfOpen)) fmt.Fprintf(w, "Active peers: %d\n", len(t.conns)) - missinggo.Sort(t.conns, worseConn) + missinggo.SortSlice(t.conns, worseConn) for i, c := range t.conns { fmt.Fprintf(w, "%2d. ", i+1) c.WriteStatus(w, t) -- 2.48.1