cosmetic: report direct peers on one line in status

This commit is contained in:
Matthias Radestock committed 2015-05-29 17:03:33 +01:00
1 parent b7df116491
commit 9a1e8c07ac
1 file changed
+3 -4
+3 -4
View File
@@ -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 {