feat(swarm): remove unused DialError::ConnectionIo variant (#3374)

This variant is never constructed.
This commit is contained in:
Thomas Eizinger
2023-01-26 19:10:08 +11:00
committed by GitHub
parent 9f7145912a
commit 14825c7ecb
4 changed files with 5 additions and 12 deletions

View File

@ -246,9 +246,6 @@ impl<TBvEv, THandleErr> super::Recorder<libp2p_swarm::SwarmEvent<TBvEv, THandleE
libp2p_swarm::DialError::WrongPeerId { .. } => {
record(OutgoingConnectionErrorError::WrongPeerId)
}
libp2p_swarm::DialError::ConnectionIo(_) => {
record(OutgoingConnectionErrorError::ConnectionIo)
}
};
}
libp2p_swarm::SwarmEvent::BannedPeer { endpoint, .. } => {
@ -347,7 +344,6 @@ enum OutgoingConnectionErrorError {
Aborted,
InvalidPeerId,
WrongPeerId,
ConnectionIo,
TransportMultiaddrNotSupported,
TransportOther,
}