]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Export torrent.String to Torrent
authorMatt Joiner <anacrolix@gmail.com>
Sat, 20 Feb 2016 03:39:56 +0000 (14:39 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 20 Feb 2016 03:39:56 +0000 (14:39 +1100)
t.go

diff --git a/t.go b/t.go
index 23e00c002def6a12c97224a4056a99c01bdf11b9..ecbcdbf6a4a44e1c2b67527f60371501405fc437 100644 (file)
--- a/t.go
+++ b/t.go
@@ -154,3 +154,7 @@ func (t Torrent) CancelPieces(begin, end int) {
        defer t.cl.mu.Unlock()
        t.torrent.unpendPieceRange(begin, end)
 }
+
+func (t Torrent) String() string {
+       return t.torrent.String()
+}