Skip to content

Commit

Permalink
refactor: rename bind_addr config to bind_address
Browse files Browse the repository at this point in the history
Co-authored-by: Tommy Trøen <[email protected]>
Co-authored-by: Kim Tore Jensen <[email protected]>
  • Loading branch information
3 people committed Nov 1, 2024
1 parent b0f3ceb commit 7c21188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod config {
#[command(version, about, long_about = None)]
pub struct Config {
#[arg(short, long, env, default_value = "127.0.0.1:3000")]
pub bind_addr: String,
pub bind_address: String,
#[arg(env)]
pub maskinporten_client_id: String,
#[arg(env)]
Expand Down Expand Up @@ -72,7 +72,7 @@ async fn main() {
.route("/token", post(handlers::token)).with_state(state.clone())
.route("/introspection", post(handlers::introspection).with_state(state.clone()));

let listener = tokio::net::TcpListener::bind(cfg.bind_addr).await.unwrap();
let listener = tokio::net::TcpListener::bind(cfg.bind_address).await.unwrap();

info!("Serving on {:?}", listener.local_addr().unwrap());

Expand Down

0 comments on commit 7c21188

Please sign in to comment.