]> Sergey Matveev's repositories - btrtrc.git/commitdiff
piece-file storage: Use the receiver-local FileStore field
authorMatt Joiner <anacrolix@gmail.com>
Thu, 14 Apr 2016 07:28:30 +0000 (17:28 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 14 Apr 2016 07:28:30 +0000 (17:28 +1000)
Because aliens, mainly.

storage/piece_file.go

index 5656eedd78c15d26da028e919ebcc5e043f4e8a6..e77a3e7eeab2a8dc839e4effdb13a10c51d49b64 100644 (file)
@@ -52,7 +52,7 @@ func (me pieceFileTorrentStoragePiece) incompletePath() string {
 }
 
 func (me pieceFileTorrentStoragePiece) GetIsComplete() bool {
-       fi, err := me.ts.s.fs.Stat(me.completedPath())
+       fi, err := me.fs.Stat(me.completedPath())
        return err == nil && fi.Size() == me.p.Length()
 }