From 9a1e8c07ac24ab1cbc16d9853724b12f08e84e48 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Fri, 29 May 2015 17:03:33 +0100 Subject: [PATCH] cosmetic: report direct peers on one line in status --- router/connection_maker.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/router/connection_maker.go b/router/connection_maker.go index 62df026a..4f5b542d 100644 --- a/router/connection_maker.go +++ b/router/connection_maker.go @@ -138,12 +138,11 @@ type ConnectionMakerStatus struct { func (status ConnectionMakerStatus) String() string { var buf bytes.Buffer - fmt.Fprintln(&buf, "Direct Peers:") + fmt.Fprint(&buf, "Direct Peers:") for _, peer := range status.DirectPeers { - fmt.Fprintln(&buf, peer) + fmt.Fprintf(&buf, " %s", peer) } - - fmt.Fprintln(&buf, "Reconnects:") + fmt.Fprintln(&buf, "\nReconnects:") for address, target := range status.Reconnects { fmt.Fprintf(&buf, "->[%s]", address) if target.lastError != nil {