]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add comment doc for File.PrioritizeRegion
authorMatt Joiner <anacrolix@gmail.com>
Mon, 9 Nov 2015 11:27:38 +0000 (22:27 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 9 Nov 2015 11:27:38 +0000 (22:27 +1100)
file.go

diff --git a/file.go b/file.go
index 52b5bfeb41bd62a5e666945bb96b925618ed4e5c..b8550cc7eee9acc355361ee6b1a88763ac466729 100644 (file)
--- a/file.go
+++ b/file.go
@@ -71,6 +71,8 @@ func (f *File) State() (ret []FilePieceState) {
        return
 }
 
+// Marks pieces in the region of the file for download. This is a helper
+// wrapping Torrent.SetRegionPriority.
 func (f *File) PrioritizeRegion(off, len int64) {
        if off < 0 || off >= f.length {
                return