Commit 420c1e61 authored by Kaiden Fey's avatar Kaiden Fey Committed by Katharina Fey

netmod-tcp: removing over-eager error output for empty peers

parent a4f90e09
......@@ -96,6 +96,8 @@ impl Endpoint {
/// connections.
pub async fn add_peers(&self, peers: Vec<String>) -> Result<()> {
for p in peers.into_iter() {
if &p == "" && continue {}
let mut parts: Vec<_> = p.split(|x| x == ' ').collect();
let _type = parts.get(1);
let peer = match parts[0].parse().ok() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment