feat: add on_piece_completed method on TorrentStorage
This commit is contained in:
parent
67f984ac6f
commit
35d57ae8a2
10 changed files with 100 additions and 18 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue