Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSeeding re-stores chunks even if they are already stored #524
Comments
This comment has been minimized.
This comment has been minimized.
|
You're right. We can make two improvements here:
|
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When you seed a file, it doesn't matter if the pieces are already on the store, it will create a ChunkStoreWriteStream and re-store them.
The verifying happens in Torrent._onMetadata, called on Torrent._onSwarnListening
The re-storing happens in Torrent.load, called in WebTorrent.seed