Move methods to correct file
This commit is contained in:
parent
c76f3c1ead
commit
4b6c8b1c39
10
client.go
10
client.go
|
@ -1971,16 +1971,6 @@ func (t *torrent) BytesCompleted() int64 {
|
|||
return t.Info.TotalLength() - t.bytesLeft()
|
||||
}
|
||||
|
||||
func (t Torrent) NumPieces() int {
|
||||
return t.numPieces()
|
||||
}
|
||||
|
||||
func (t Torrent) Drop() {
|
||||
t.cl.mu.Lock()
|
||||
t.cl.dropTorrent(t.InfoHash)
|
||||
t.cl.mu.Unlock()
|
||||
}
|
||||
|
||||
// A file-like handle to some torrent data resource.
|
||||
type Handle interface {
|
||||
io.Reader
|
||||
|
|
Loading…
Reference in New Issue