From cd20c2df360fb0468e3a90f03e4091cd02c3d764 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 1 Jul 2017 16:02:06 +1000 Subject: [PATCH] Fix handling of infohash as hex in Torrent.String --- t.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }