Skip to content

Commit

Permalink
Merge branch 'rework_max' of github.com:chronicleprotocol/challenger-…
Browse files Browse the repository at this point in the history
…rs into rework_max
  • Loading branch information
max-wickham committed Oct 28, 2024
2 parents 5881c96 + f23b4e9 commit 24a9668
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ async fn main() -> Result<()> {
// Register Prometheus metrics
let builder = PrometheusBuilder::new();

let port = env::var("HTTP_PORT").unwrap_or(String::from("9090")).parse::<u16>().unwrap();

let port = env::var("HTTP_PORT")
.unwrap_or(String::from("9090"))
.parse::<u16>()
.unwrap();
let addr = SocketAddr::from(([0, 0, 0, 0], port));

let _ = builder.with_http_listener(addr).install();
Expand Down

0 comments on commit 24a9668

Please sign in to comment.