Skip to content

Commit

Permalink
Merge branch 'master' of github.com:CortexFoundation/torrentfs
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Jul 23, 2020
2 parents a6ba35f + db047dd commit 78bee5d
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 125 deletions.
7 changes: 1 addition & 6 deletions fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,11 @@ func (fs *TorrentFS) GetFile(ctx context.Context, infohash, subpath string) ([]b
}

func (fs *TorrentFS) Download(ctx context.Context, ih string, request int64) error {

//if fs.monitor.listen {
//return nil
//}

if update, err := fs.chain().AddTorrent(ih, uint64(request)); err != nil {
return err
} else {
if update {
if err := fs.storage().Search(ih, request, false); err != nil {
if err := fs.storage().Search(ctx, ih, request); err != nil {
return err
}
}
Expand Down
Loading

0 comments on commit 78bee5d

Please sign in to comment.