mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-11-21 16:21:01 +00:00
Formatting
This commit is contained in:
parent
09d928a13a
commit
68dcf2ea68
1 changed files with 2 additions and 3 deletions
|
@ -14,7 +14,7 @@ use actix_web::{web, App, HttpServer};
|
|||
use actix_web_flash_messages::storage::CookieMessageStore;
|
||||
use actix_web_flash_messages::FlashMessagesFramework;
|
||||
use actix_web_lab::middleware::from_fn;
|
||||
use secrecy::{Secret, ExposeSecret};
|
||||
use secrecy::{ExposeSecret, Secret};
|
||||
use sqlx::postgres::PgPoolOptions;
|
||||
use sqlx::PgPool;
|
||||
use std::net::TcpListener;
|
||||
|
@ -59,8 +59,7 @@ impl Application {
|
|||
}
|
||||
|
||||
pub fn get_connection_pool(configuration: &DatabaseSettings) -> PgPool {
|
||||
PgPoolOptions::new()
|
||||
.connect_lazy_with(configuration.with_db())
|
||||
PgPoolOptions::new().connect_lazy_with(configuration.with_db())
|
||||
}
|
||||
|
||||
pub struct ApplicationBaseUrl(pub String);
|
||||
|
|
Loading…
Reference in a new issue