From de981aace0e47a1fa65b38212ac21d91e52f7c15 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 18 Oct 2021 12:59:55 +0200 Subject: [PATCH] apply fmt --- src/util.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/util.rs b/src/util.rs index 047095f..f4dfac7 100644 --- a/src/util.rs +++ b/src/util.rs @@ -80,10 +80,7 @@ pub fn parse_and_resolve_peer_addr(peer: &str) -> Option<(NodeID, Vec>(); + let hosts = host[1..].to_socket_addrs().ok()?.collect::>(); if hosts.is_empty() { return None; }