more refactoring
This commit is contained in:
parent
7268d49b4a
commit
ce5d2c9fb4
10 changed files with 251 additions and 39 deletions
|
|
@ -63,7 +63,7 @@ pub async fn start(config: crate::config::Config) -> AppResult<()> {
|
|||
let listener = tokio::net::TcpListener::bind(&addr)
|
||||
.await
|
||||
.map_err(|e| crate::error::AppError::Internal(e.to_string()))?;
|
||||
println!("Server running on http://localhost:{}", config.port);
|
||||
tracing::info!("Server running on http://localhost:{}", config.port);
|
||||
axum::serve(listener, app)
|
||||
.await
|
||||
.map_err(|e| crate::error::AppError::Internal(e.to_string()))?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue