Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Jul 26, 2024
1 parent ec9d627 commit 829193f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ use tower_http::trace::TraceLayer;
use tracing::{info, info_span};
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};

mod config;
mod dto;
mod enums;
mod handlers;
mod scripts;
mod services;
mod config;

async fn handler_404() -> impl IntoResponse {
(
Expand Down Expand Up @@ -78,9 +78,13 @@ async fn main() {
)
.route_layer(middleware::from_fn(track_metrics));

let listener = tokio::net::TcpListener::bind(format!("{:}:{:}", config::ENV.agent_host, config::ENV.agent_port))
.await
.unwrap();
let listener = tokio::net::TcpListener::bind(format!(
"{:}:{:}",
config::ENV.agent_host,
config::ENV.agent_port
))
.await
.unwrap();

info!(
"Main server listening on {}",
Expand Down

0 comments on commit 829193f

Please sign in to comment.