From: Matt Joiner Date: Sat, 6 Jan 2018 05:54:17 +0000 (+1100) Subject: Rename File.PrioritizeRegion to DownloadRegion X-Git-Tag: v1.0.0~296 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4d1451f979056990b84d9c7234c63ad81e82539c;p=btrtrc.git Rename File.PrioritizeRegion to DownloadRegion Fixes #223 --- diff --git a/file.go b/file.go index e71cee6c..8c5ac6d7 100644 --- a/file.go +++ b/file.go @@ -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)) }