Skip to content

Commit

Permalink
feat(server): give Server::local_addr a more general type
Browse files Browse the repository at this point in the history
Allows `local_addr` to work for any executor type, rather than just the default `Exec`. The
underlying `SpawnAll::local_addr()` is already similarly general, so no other changes are needed
other than adding the extra type parameter to the `impl`.
  • Loading branch information
acfoltzer authored and seanmonstar committed Dec 4, 2019
1 parent 6ae5889 commit 3cc93e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Server<AddrIncoming, ()> {
}

#[cfg(feature = "tcp")]
impl<S> Server<AddrIncoming, S> {
impl<S, E> Server<AddrIncoming, S, E> {
/// Returns the local address that this server is bound to.
pub fn local_addr(&self) -> SocketAddr {
self.spawn_all.local_addr()
Expand Down

0 comments on commit 3cc93e7

Please sign in to comment.