Skip to content

Commit c5d9e68

Browse files
authored
refactor(iroh-relay)!: Remove usesed errors. (#3012)
## Description A whole bunch of these errors are unused. But they are all pub so the compiler doesn't tell us. :'( ## Breaking Changes ### iroh-relay - `ClientError` has a number of unused variants removed. ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented.
1 parent 97082ec commit c5d9e68

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

iroh-relay/src/client.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ pub enum ClientError {
5959
/// The client is closed
6060
#[error("client is closed")]
6161
Closed,
62-
/// There no underlying relay [`super::client::Client`] client exists for this http relay [`Client`]
63-
#[error("no relay client")]
64-
NoClient,
6562
/// There was an error sending a packet
6663
#[error("error sending a packet")]
6764
Send,
@@ -71,21 +68,9 @@ pub enum ClientError {
7168
/// There was a connection timeout error
7269
#[error("connect timeout")]
7370
ConnectTimeout,
74-
/// No relay nodes are available
75-
#[error("Relay node is not available")]
76-
RelayNodeNotAvail,
77-
/// No relay nodes are available with that name
78-
#[error("no nodes available for {0}")]
79-
NoNodeForTarget(String),
80-
/// The relay node specified only allows STUN requests
81-
#[error("no relay nodes found for {0}, only are stun_only nodes")]
82-
StunOnlyNodesFound(String),
8371
/// There was an error dialing
8472
#[error("dial error")]
8573
DialIO(#[from] std::io::Error),
86-
/// There was an error from the task doing the dialing
87-
#[error("dial error")]
88-
DialTask(#[from] tokio::task::JoinError),
8974
/// Both IPv4 and IPv6 are disabled for this relay node
9075
#[error("both IPv4 and IPv6 are explicitly disabled for this node")]
9176
IPDisabled,
@@ -122,9 +107,6 @@ pub enum ClientError {
122107
/// There was an error with DNS resolution
123108
#[error("dns: {0:?}")]
124109
Dns(Option<anyhow::Error>),
125-
/// There was a timeout resolving DNS.
126-
#[error("dns timeout")]
127-
DnsTimeout,
128110
/// The inner actor is gone, likely means things are shutdown.
129111
#[error("actor gone")]
130112
ActorGone,

0 commit comments

Comments
 (0)