From 4d1451f979056990b84d9c7234c63ad81e82539c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 6 Jan 2018 16:54:17 +1100 Subject: [PATCH] Rename File.PrioritizeRegion to DownloadRegion Fixes #223 --- file.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)) } -- 2.44.0