Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jhodapp committed Dec 13, 2024
1 parent 73ba06d commit 03a4f10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ pub(crate) mod extractors;
mod router;

pub async fn init_server(app_state: AppState) -> Result<()> {
info!("Connecting to DB with URI: {}", app_state.config.database_uri());
info!(
"Connecting to DB with URI: {}",
app_state.config.database_uri()
);
// Session layer
let session_store = PostgresStore::new(
app_state
Expand Down Expand Up @@ -62,7 +65,6 @@ pub async fn init_server(app_state: AppState) -> Result<()> {
let server_url = format!("{host}:{port}");
let listen_addr = SocketAddr::from_str(&server_url).unwrap();


let listener = TcpListener::bind(listen_addr).await.unwrap();
// Convert the type of the allow_origins Vec into a HeaderValue that the CorsLayer accepts
let allowed_origins = app_state
Expand Down

0 comments on commit 03a4f10

Please sign in to comment.