Nothing
This commit is contained in:
parent
60c0c73005
commit
b4f6d8b93d
2 changed files with 22 additions and 44 deletions
|
|
@ -20,12 +20,14 @@ impl From<&ChunkInfo> for InflightRequest {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum PeerState {
|
||||
Queued(SocketAddr),
|
||||
Connecting(SocketAddr),
|
||||
Queued,
|
||||
Connecting,
|
||||
Live(LivePeerState),
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct LivePeerState {
|
||||
pub peer_id: [u8; 20],
|
||||
pub i_am_choked: bool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue