diff --git a/src/lib.rs b/src/lib.rs index 13f2176..69f6f7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,8 +119,7 @@ use tokio_core::reactor; lazy_static! { /// The `Remote` for the default reactor core. - #[doc(hidden)] - pub static ref REMOTE: reactor::Remote = { + static ref REMOTE: reactor::Remote = { spawn_core() }; } diff --git a/src/server.rs b/src/server.rs index 35f5d05..29e34a7 100644 --- a/src/server.rs +++ b/src/server.rs @@ -72,9 +72,9 @@ pub fn listen(new_service: S, addr: SocketAddr, options: Option } } } + /// Spawns a service that binds to the given address using the given handle. -#[doc(hidden)] -pub fn listen_with(new_service: S, +fn listen_with(new_service: S, addr: SocketAddr, handle: Handle) -> io::Result