This commit is contained in:
Luca Palmieri 2023-02-18 22:54:16 +00:00
parent fa0d11566e
commit 5a93bd4018

View file

@ -33,7 +33,7 @@ impl Application {
"{}:{}",
configuration.application.host, configuration.application.port
);
let listener = TcpListener::bind(&address)?;
let listener = TcpListener::bind(address)?;
let port = listener.local_addr().unwrap().port();
let server = run(listener, connection_pool, email_client)?;