This commit is contained in:
Igor Katson 2023-11-24 12:47:33 +00:00
parent 0aa1af7933
commit 5e728fc67b
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 23 additions and 36 deletions

View file

@ -63,8 +63,8 @@ use clone_to_owned::CloneToOwned;
use futures::{stream::FuturesUnordered, StreamExt};
use librqbit_core::{
id20::Id20,
lengths::{self, ChunkInfo, Lengths, ValidPieceIndex},
speed_estimator::{self, SpeedEstimator},
lengths::{ChunkInfo, Lengths, ValidPieceIndex},
speed_estimator::{SpeedEstimator},
torrent_metainfo::TorrentMetaV1Info,
};
use parking_lot::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard};
@ -88,7 +88,7 @@ use crate::{
peer_connection::{
PeerConnection, PeerConnectionHandler, PeerConnectionOptions, WriterRequest,
},
spawn_utils::{spawn, BlockingSpawner},
spawn_utils::{spawn},
tracker_comms::{TrackerError, TrackerRequest, TrackerRequestEvent, TrackerResponse},
type_aliases::{PeerHandle, BF},
};
@ -165,7 +165,7 @@ impl TorrentStateLive {
let have_bytes = paused.chunk_tracker.get_have_bytes();
let needed_bytes = paused.chunk_tracker.get_needed_bytes();
let lengths = paused.chunk_tracker.get_lengths().clone();
let lengths = *paused.chunk_tracker.get_lengths();
let state = Arc::new(TorrentStateLive {
meta: paused.info.clone(),