This commit is contained in:
nikk gitanes
2021-09-13 04:11:21 +03:00
parent 617f51711d
commit 4565396f9d
3 changed files with 7 additions and 7 deletions

View File

@@ -30,10 +30,10 @@ func (s *Storage) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (stor
ch := NewCache(s.capacity, s)
ch.Init(info, infoHash)
s.caches[infoHash] = ch
// return ch, nil
// return ch, nil
return storage2.TorrentImpl{
Piece: ch.Piece,
Close: ch.Close,
Piece: ch.Piece,
Close: ch.Close,
}, nil
}