Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions dash-spv/src/network/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,6 @@ impl Peer {
return Err(NetworkError::PeerDisconnected);
}
Ok(_) => {}
Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => {
return Ok(None);
}
Err(ref e) if e.kind() == std::io::ErrorKind::TimedOut => {
return Ok(None);
}
Err(ref e)
if e.kind() == std::io::ErrorKind::ConnectionAborted
|| e.kind() == std::io::ErrorKind::ConnectionReset =>
Expand Down Expand Up @@ -455,12 +449,6 @@ impl Peer {
return Err(NetworkError::PeerDisconnected);
}
Ok(_) => {}
Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => {
return Ok(None);
}
Err(ref e) if e.kind() == std::io::ErrorKind::TimedOut => {
return Ok(None);
}
Err(e) => {
return Err(NetworkError::ConnectionFailed(format!(
"Read failed: {}",
Expand All @@ -480,12 +468,6 @@ impl Peer {
return Err(NetworkError::PeerDisconnected);
}
Ok(_) => {}
Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => {
return Ok(None);
}
Err(ref e) if e.kind() == std::io::ErrorKind::TimedOut => {
return Ok(None);
}
Err(e) => {
return Err(NetworkError::ConnectionFailed(format!(
"Read failed: {}",
Expand Down Expand Up @@ -534,12 +516,6 @@ impl Peer {
return Err(NetworkError::PeerDisconnected);
}
Ok(_) => {}
Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => {
return Ok(None);
}
Err(ref e) if e.kind() == std::io::ErrorKind::TimedOut => {
return Ok(None);
}
Err(e) => {
return Err(NetworkError::ConnectionFailed(format!(
"Read failed: {}",
Expand Down
Loading