mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-01 01:25:36 +00:00
rename argument from initial_peers to initial_peer
This commit is contained in:
parent
491f7ef3c4
commit
525a487806
3 changed files with 4 additions and 4 deletions
|
|
@ -31,8 +31,8 @@ async fn main() -> anyhow::Result<()> {
|
|||
trackers.insert(url::Url::from_str(&tracker)?);
|
||||
}
|
||||
|
||||
let mut peers = Vec::with_capacity(argument.initial_peers.len());
|
||||
for peer in argument.initial_peers {
|
||||
let mut peers = Vec::with_capacity(argument.initial_peer.len());
|
||||
for peer in argument.initial_peer {
|
||||
peers.push(std::net::SocketAddr::from_str(&peer)?);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue