rename argument from initial_peers to initial_peer

This commit is contained in:
yggverse 2025-06-07 16:42:47 +03:00
parent 491f7ef3c4
commit 525a487806
3 changed files with 4 additions and 4 deletions

View file

@ -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)?);
}