From 06a208335e67eaa94441764b6ee0bdb421d372b2 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Fri, 24 Nov 2023 09:41:04 +1100 Subject: [PATCH] feat(cli): peers displayed as list --- sn_cli/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sn_cli/src/main.rs b/sn_cli/src/main.rs index f2230322b5..8b7cf2ec0d 100644 --- a/sn_cli/src/main.rs +++ b/sn_cli/src/main.rs @@ -88,9 +88,12 @@ async fn main() -> Result<()> { let bootstrap_peers = parse_peers_args(opt.peers).await?; println!( - "Connecting to the network w/peers: {:?}...", - bootstrap_peers + "Connecting to the network w/peers:", ); + for peer in &bootstrap_peers { + println!("{}", peer); + } + let bootstrap_peers = if bootstrap_peers.is_empty() { // empty vec is returned if `local-discovery` flag is provided None