From: Matt Joiner Date: Thu, 14 Apr 2016 07:28:30 +0000 (+1000) Subject: piece-file storage: Use the receiver-local FileStore field X-Git-Tag: v1.0.0~778 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=86e34977de983f76fd0d933d42aec1677f2cc57d;p=btrtrc.git piece-file storage: Use the receiver-local FileStore field Because aliens, mainly. --- diff --git a/storage/piece_file.go b/storage/piece_file.go index 5656eedd..e77a3e7e 100644 --- a/storage/piece_file.go +++ b/storage/piece_file.go @@ -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() }