Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscout committed Jul 28, 2024
1 parent 3873335 commit 1473770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub fn wait(sleep: &mut dyn sleeper::Sleeper, config: &Config, on_timeout: &mut
for host in config.hosts.trim().split(',') {
info!("Checking availability of host [{}]", host);
while !port_check::is_port_reachable_with_timeout(
&host.trim().to_string(),
host.trim(),
Duration::from_secs(config.tcp_connection_timeout),
) {
info!("Host [{}] not yet available...", host);
Expand Down

0 comments on commit 1473770

Please sign in to comment.