Skip to content

Commit

Permalink
fixup! add failover listener for discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed Jun 27, 2020
1 parent 67521df commit 7a609b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/listener/failover_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ impl<State: Send + Sync + 'static> FailoverListener<State> {
/// let mut listener = tide::listener::FailoverListener::new();
/// listener.add("127.0.0.1:8000")?;
/// listener.add(("localhost", 8001))?;
/// # if cfg!(unix) {
/// listener.add("http+unix:///var/run/tide")?;
/// # }
/// # std::mem::drop(tide::new().listen(listener)); // for the State generic
/// # Ok(()) }
/// ```
Expand Down Expand Up @@ -93,6 +95,7 @@ impl<State: Send + Sync + 'static> Listener<State> for FailoverListener<State> {
}
}
}

Err(io::Error::new(
io::ErrorKind::AddrNotAvailable,
"unable to bind to any supplied listener spec",
Expand Down

0 comments on commit 7a609b6

Please sign in to comment.