This commit is contained in:
Igor Katson 2021-07-04 12:17:06 +01:00
parent 60c0c73005
commit b4f6d8b93d
2 changed files with 22 additions and 44 deletions

View file

@ -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,