fix index insert position

This commit is contained in:
yggverse 2025-06-30 14:09:50 +03:00
parent a2fc78c0e8
commit fdecb911fa

View file

@ -73,8 +73,8 @@ fn crawl(
} }
if TcpStream::connect_timeout(&address, Duration::from_secs(1)).is_ok() { if TcpStream::connect_timeout(&address, Duration::from_secs(1)).is_ok() {
println!("{url}"); println!("{url}");
index.push(address)
} }
index.push(address)
} }
} }
if let Some((index, server)) = udp { if let Some((index, server)) = udp {
@ -85,8 +85,8 @@ fn crawl(
} }
if server.check(address) { if server.check(address) {
println!("{url}"); println!("{url}");
index.push(address)
} }
index.push(address)
} }
} }
} }