mod update and fix build

This commit is contained in:
nikk gitanes
2022-01-20 09:43:05 +03:00
parent 460ea98563
commit 4898827fa5
7 changed files with 42 additions and 132 deletions

View File

@@ -30,11 +30,11 @@ 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 storage2.TorrentImpl{
Piece: ch.Piece,
Close: ch.Close,
}, nil
return ch, nil
// return storage2.TorrentImpl{
// Piece: ch.Piece,
// Close: ch.Close,
// }, nil
}
func (s *Storage) CloseHash(hash metainfo.Hash) {