Rename File.PrioritizeRegion to DownloadRegion

Fixes #223
This commit is contained in:
Matt Joiner 2018-01-06 16:54:17 +11:00
parent 2f616b9d8b
commit 4d1451f979
1 changed files with 6 additions and 1 deletions

View File

@ -81,9 +81,14 @@ func (f *File) Download() {
f.t.DownloadPieces(f.t.byteRegionPieces(f.offset, f.length))
}
// Deprecated: Use File.DownloadRegion.
func (f *File) PrioritizeRegion(off, len int64) {
f.DownloadRegion(off, len)
}
// Requests that torrent pieces containing bytes in the given region of the
// file be downloaded.
func (f *File) PrioritizeRegion(off, len int64) {
func (f *File) DownloadRegion(off, len int64) {
f.t.DownloadPieces(f.t.byteRegionPieces(f.offset+off, len))
}