From: Matt Joiner Date: Sat, 1 Jul 2017 06:02:06 +0000 (+1000) Subject: Fix handling of infohash as hex in Torrent.String X-Git-Tag: v1.0.0~456 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cd20c2df360fb0468e3a90f03e4091cd02c3d764;p=btrtrc.git Fix handling of infohash as hex in Torrent.String --- diff --git a/t.go b/t.go index 3fe2ae79..abd9d354 100644 --- a/t.go +++ b/t.go @@ -1,7 +1,6 @@ package torrent import ( - "fmt" "strings" "github.com/anacrolix/missinggo/pubsub" @@ -200,7 +199,7 @@ func (t *Torrent) DownloadAll() { func (t *Torrent) String() string { s := t.name() if s == "" { - s = fmt.Sprintf("%x", t.infoHash) + s = t.infoHash.HexString() } return s }