feat: update
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-04-06 21:30:49 +02:00
parent 34fabb72be
commit 7e22a7f3ab
7 changed files with 300 additions and 446 deletions

View File

@@ -21,6 +21,7 @@ use event::EventService;
use lease::LeaseService;
use serde::Deserialize;
use serde_json::json;
use tokio::net::TcpListener;
use crate::db::Db;
@@ -94,8 +95,8 @@ async fn main() -> anyhow::Result<()> {
});
tracing::info!("churn server listening on {}", host);
axum::Server::bind(&host)
.serve(app.into_make_service())
let listener = TcpListener::bind(&host).await?;
axum::serve(listener, app.into_make_service())
.await
.unwrap();
}