comment cleanup
parent
061a875e15
commit
2bd0925676
|
@ -45,7 +45,6 @@ impl AppState {
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// initialize tracing
|
// initialize tracing
|
||||||
// tracing_subscriber::fmt::init();
|
|
||||||
tracing_subscriber::registry()
|
tracing_subscriber::registry()
|
||||||
.with(
|
.with(
|
||||||
tracing_subscriber::EnvFilter::try_from_default_env()
|
tracing_subscriber::EnvFilter::try_from_default_env()
|
||||||
|
@ -72,7 +71,6 @@ async fn main() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
// basic handler that responds with a static string
|
|
||||||
async fn root(State(state): State<AppState>) -> impl IntoResponse {
|
async fn root(State(state): State<AppState>) -> impl IntoResponse {
|
||||||
let mut conn = state.connection.get().await.unwrap();
|
let mut conn = state.connection.get().await.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue