From 819930a8fccbc8c4ee056196a57bc0799cf5ffb0 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Fri, 13 May 2016 17:58:59 -0400 Subject: [PATCH] Fix syntax error for torrent hash generation --- metainfo/metainfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metainfo/metainfo.go b/metainfo/metainfo.go index c0c6ec4..aed2a21 100644 --- a/metainfo/metainfo.go +++ b/metainfo/metainfo.go @@ -13,5 +13,5 @@ func GetTorrentHashHexString(reader io.Reader) (string, error) { return "", err } - return strings.ToUpper(info.Info.Hash.HexString()), nil + return strings.ToUpper(info.Info.Hash().HexString()), nil }