Skip to content

Commit

Permalink
Binding app to fixed port for easier curl testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ICavlek committed Sep 28, 2023
1 parent 9a8c99b commit 30a0aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use zero2prod::run;

#[tokio::main]
async fn main() -> std::io::Result<()> {
let listener = TcpListener::bind("127.0.0.1:0").expect("Failed to bind random port");
let listener = TcpListener::bind("127.0.0.1:8000").expect("Failed to bind random port");
println!(
"🚀 Listening on http://127.0.0.1:{}",
listener.local_addr().unwrap().port()
Expand Down

0 comments on commit 30a0aef

Please sign in to comment.