From 84766f92fbc26c8272ef44dd5ad199fb2029adf1 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Thu, 23 Nov 2023 16:28:26 +0000 Subject: [PATCH] cargo fix --- crates/librqbit/src/file_ops.rs | 2 +- crates/librqbit/src/torrent_state/live/peer/mod.rs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/librqbit/src/file_ops.rs b/crates/librqbit/src/file_ops.rs index 32e2bb3..8136c9f 100644 --- a/crates/librqbit/src/file_ops.rs +++ b/crates/librqbit/src/file_ops.rs @@ -11,10 +11,10 @@ use librqbit_core::{ lengths::{ChunkInfo, Lengths, ValidPieceIndex}, torrent_metainfo::{FileIteratorName, TorrentMetaV1Info}, }; -use tracing::{debug, trace, warn}; use parking_lot::Mutex; use peer_binary_protocol::Piece; use sha1w::ISha1; +use tracing::{debug, trace, warn}; use crate::type_aliases::{PeerHandle, BF}; diff --git a/crates/librqbit/src/torrent_state/live/peer/mod.rs b/crates/librqbit/src/torrent_state/live/peer/mod.rs index 773be14..9b16d5e 100644 --- a/crates/librqbit/src/torrent_state/live/peer/mod.rs +++ b/crates/librqbit/src/torrent_state/live/peer/mod.rs @@ -1,15 +1,12 @@ pub mod stats; use std::collections::HashSet; -use std::sync::atomic::{AtomicU32, AtomicU64, Ordering}; -use std::sync::Arc; -use std::time::Duration; use anyhow::Context; -use backoff::{ExponentialBackoff, ExponentialBackoffBuilder}; + use librqbit_core::id20::Id20; use librqbit_core::lengths::{ChunkInfo, ValidPieceIndex}; -use serde::Serialize; + use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver, UnboundedSender}; use crate::peer_connection::WriterRequest;