Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
VB-123 authored Nov 9, 2023
1 parent 6af541c commit cc3c55a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web_server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,13 @@ async fn main() {

// run our app with hyper
// `axum::Server` is a re-export of `hyper::Server`
<<<<<<< master
let addr = if cfg!(debug_assertions) {
SocketAddr::from(([127, 0, 0, 1], 3000))
}
else {
SocketAddr::from(([0, 0, 0, 0], 3000))
};
=======
let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
>>>>>>> master
// http://127.0.0.1:3000
println!("listening on {}", addr);
tracing::debug!("listening on {}", addr);
axum::Server::bind(&addr)
Expand Down

0 comments on commit cc3c55a

Please sign in to comment.