mirror of
https://github.com/YGGverse/yps.git
synced 2026-03-31 17:05:30 +00:00
fix index insert position
This commit is contained in:
parent
a2fc78c0e8
commit
fdecb911fa
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue