Skip to content

Commit

Permalink
remove the call to a failing method followed by an unwrap by creating…
Browse files Browse the repository at this point in the history
… the new value directly

Co-authored-by: tilacog <[email protected]>
  • Loading branch information
eloylp and tilacog authored Apr 11, 2024
1 parent 198838a commit 49c3606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ampd/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Default for Config {
event_buffer_cap: 100000,
event_stream_timeout: Duration::from_secs(15),
service_registry: ServiceRegistryConfig::default(),
health_check_bind_addr: SocketAddr::from_str("0.0.0.0:3000").unwrap(),
health_check_bind_addr: SocketAddrV4::new(Ipv4Addr::UNSPECIFIED, 3000);
}
}
}
Expand Down

0 comments on commit 49c3606

Please sign in to comment.