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

@ -5,7 +5,7 @@ use std::{
time::Duration,
};
use anyhow::{bail, Context};
use anyhow::bail;
use librqbit_core::Id20;
use parking_lot::RwLock;
use rand::{thread_rng, Rng, RngCore, SeedableRng};
@ -97,6 +97,7 @@ impl TestPeerMetadata {
#[cfg(feature = "http-api")]
async fn debug_server() -> anyhow::Result<()> {
use anyhow::Context;
use axum::{response::IntoResponse, routing::get, Router};
async fn backtraces() -> impl IntoResponse {
#[cfg(feature = "async-bt")]