Skip to content

Commit ad56bb6

Browse files
tronghntommytroenkimtore
committed
refactor: rename bind_addr config to bind_address
Co-authored-by: Tommy Trøen <[email protected]> Co-authored-by: Kim Tore Jensen <[email protected]>
1 parent 9f4dd24 commit ad56bb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub mod config {
1717
#[command(version, about, long_about = None)]
1818
pub struct Config {
1919
#[arg(short, long, env, default_value = "127.0.0.1:3000")]
20-
pub bind_addr: String,
20+
pub bind_address: String,
2121
#[arg(env)]
2222
pub maskinporten_client_id: String,
2323
#[arg(env)]
@@ -72,7 +72,7 @@ async fn main() {
7272
.route("/token", post(handlers::token)).with_state(state.clone())
7373
.route("/introspection", post(handlers::introspection).with_state(state.clone()));
7474

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

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

0 commit comments

Comments
 (0)