feat: add on_piece_completed method on TorrentStorage

This commit is contained in:
LIAUD Corentin 2024-08-27 22:00:14 +02:00
parent 67f984ac6f
commit 35d57ae8a2
No known key found for this signature in database
GPG key ID: 48D3490FB1A44E6A
10 changed files with 100 additions and 18 deletions

View file

@ -57,6 +57,10 @@ impl TorrentStorage for CustomStorage {
fn init(&mut self, _meta: &librqbit::ManagedTorrentShared) -> anyhow::Result<()> {
anyhow::bail!("not implemented")
}
fn on_piece_completed(&self, _file_id: usize, _offset: u64) -> anyhow::Result<()> {
anyhow::bail!("not implemented")
}
}
#[tokio::main]