Add parameter with_peers to stats_snapshot while its slow
This commit is contained in:
parent
d6cef0952c
commit
0c89ee9248
5 changed files with 11 additions and 7 deletions
|
|
@ -55,7 +55,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
async move {
|
||||
loop {
|
||||
tokio::time::sleep(Duration::from_secs(1)).await;
|
||||
let stats = handle.torrent_state().stats_snapshot();
|
||||
let stats = handle.torrent_state().stats_snapshot(true);
|
||||
info!("stats: {stats:?}");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue