[][src]Function zebra_network::init

pub async fn init<S>(
    config: Config,
    inbound_service: S
) -> (impl Service<Request, Response = Response, Error = BoxedStdError, Future = impl Future<Output = Result<Response, BoxedStdError>> + Send> + Send + Clone + 'static, Arc<Mutex<AddressBook>>) where
    S: Service<Request, Response = Response, Error = BoxedStdError> + Clone + Send + 'static,
    S::Future: Send + 'static, 

Initialize a peer set with the given config, forwarding peer requests to the inbound_service.