add connection info to router
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
c2267d4c03
commit
0bade5317f
5 changed files with 27 additions and 18 deletions
|
@ -4,14 +4,14 @@ mod unix;
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
use axum::{routing::IntoMakeService, Router};
|
||||
use axum::Router;
|
||||
use axum_server::Handle as ServerHandle;
|
||||
use conduit::{Error, Result, Server};
|
||||
use tokio::sync::broadcast;
|
||||
|
||||
/// Serve clients
|
||||
pub(super) async fn serve(
|
||||
server: &Arc<Server>, app: IntoMakeService<Router>, handle: ServerHandle, shutdown: broadcast::Receiver<()>,
|
||||
server: &Arc<Server>, app: Router, handle: ServerHandle, shutdown: broadcast::Receiver<()>,
|
||||
) -> Result<(), Error> {
|
||||
let config = &server.config;
|
||||
let addrs = config.get_bind_addrs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue