fix(deps): update all dependencies #10
@ -2,3 +2,4 @@
|
|||||||
members = [
|
members = [
|
||||||
"crates/*"
|
"crates/*"
|
||||||
]
|
]
|
||||||
|
resolver = "2"
|
||||||
|
@ -16,6 +16,7 @@ use async_graphql::{
|
|||||||
};
|
};
|
||||||
use graphql::CibusSchema;
|
use graphql::CibusSchema;
|
||||||
use sqlx::PgPool;
|
use sqlx::PgPool;
|
||||||
|
use tokio::net::TcpListener;
|
||||||
use tower_http::{cors::CorsLayer, trace::TraceLayer};
|
use tower_http::{cors::CorsLayer, trace::TraceLayer};
|
||||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||||
|
|
||||||
@ -77,8 +78,9 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
tracing::info!("Starting webserver");
|
tracing::info!("Starting webserver");
|
||||||
axum::Server::bind(&"0.0.0.0:3001".parse().unwrap())
|
|
||||||
.serve(app.into_make_service())
|
let listener = TcpListener::bind("0.0.0.0:3001").await?;
|
||||||
|
axum::serve(listener, app.into_make_service())
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user