These are chat archives for anacrolix/torrent

26th
Nov 2017
Matt Joiner
@anacrolix
Nov 26 2017 00:25
Hm
I'll check the code and give you some line numbers to check out.
i'm sure that happened elsewhere but i can't see it. you'll want to update the completion, then update it's priorities, there are single piece functions for those too.
Denis
@elgatito
Nov 26 2017 07:28
I'm deleting the piece when piece priority sets to 0, which means reader does not want it anymore, right? Then I'm deleting that piece in the storage and update completion on my side
Denis
@elgatito
Nov 26 2017 16:30
@anacrolix , have got a panic caused by anacrolix/dht - http://paste.ubuntu.com/26050949/
Matt Joiner
@anacrolix
Nov 26 2017 22:19
I think that's been reported if you want to add your info to the issue
I think you should avoid deleting data based on priority, and just delete it when your cache is full instead. LRU style, like how filecache does it. Is your storage entirely in memory?
deranjer
@deranjer
Nov 26 2017 23:07
@anacrolix I'm storing the InfoHash of a torrent in a database (torrentLocalStorage.Hash = clientTorrent.InfoHash()) and trying to re-add the torrent when the program restarts using AddTorrentInfoHash(element.Hash) (of type metainfo.Hash). Initially I got an error when then trying to access .BytesMissing(), realized I wasn't running <-singleTorrent.GotInfo(), but when I run that it never progresses beyond that point.. is there something I am missing?