change port
This commit is contained in:
parent
a70ff9907c
commit
0a1721084d
@ -29,7 +29,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
let num_cards = (CARDS_BY_ID.len() + SEARCH_CARDS.len()) / 2;
|
let num_cards = (CARDS_BY_ID.len() + SEARCH_CARDS.len()) / 2;
|
||||||
println!("Read {num_cards} cards in {:?}", now.elapsed());
|
println!("Read {num_cards} cards in {:?}", now.elapsed());
|
||||||
HttpServer::new(|| App::new().service(search).service(card_info).service(help))
|
HttpServer::new(|| App::new().service(search).service(card_info).service(help))
|
||||||
.bind((Ipv4Addr::from([127, 0, 0, 1]), 8080))?
|
.bind((Ipv4Addr::from([127, 0, 0, 1]), 1961))?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user