Skip to content

Commit

Permalink
Minor nit
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbcodes committed Nov 27, 2023
1 parent b861f48 commit e297efd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use diesel::r2d2::{ConnectionManager, Pool};
use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
use dotenvy::dotenv;
use std::env;
use tokio::net::TcpListener;
use tower_http::trace::{DefaultOnResponse, TraceLayer};
use tower_http::LatencyUnit;
use tracing::{info, Level};
Expand Down Expand Up @@ -123,6 +122,6 @@ async fn main() {

let addr: std::net::SocketAddr = "[::]:8080".parse().unwrap();
info!("listening on {addr}");
let listener = TcpListener::bind(addr).await.unwrap();
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
axum::serve(listener, app).await.unwrap();
}

0 comments on commit e297efd

Please sign in to comment.