Nothing
This commit is contained in:
parent
c6cf9776d1
commit
5a075c8ef3
2 changed files with 2 additions and 5 deletions
|
|
@ -10,12 +10,9 @@ pub enum PeerState {
|
|||
}
|
||||
|
||||
pub struct LivePeerState {
|
||||
#[allow(unused)]
|
||||
peer_id: [u8; 20],
|
||||
pub peer_id: [u8; 20],
|
||||
pub i_am_choked: bool,
|
||||
#[allow(unused)]
|
||||
pub peer_choked: bool,
|
||||
#[allow(unused)]
|
||||
pub peer_interested: bool,
|
||||
pub outstanding_requests: Arc<Semaphore>,
|
||||
pub have_notify: Arc<Notify>,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use anyhow::Context;
|
|||
use futures::{stream::FuturesUnordered, StreamExt};
|
||||
use log::{debug, warn};
|
||||
use parking_lot::{Mutex, RwLock};
|
||||
use tokio::sync::{mpsc::Sender, Notify, Semaphore};
|
||||
use tokio::sync::mpsc::Sender;
|
||||
|
||||
use crate::{
|
||||
buffers::ByteString,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue