From f220f8685423f23f7417d4e562d97108a433ec65 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 9 Jul 2019 15:15:31 -0700 Subject: [PATCH] fix: don't assume that transports implement stringer If they don't, this could end up reading a bunch of internal data, causing a race (and yes, this has happened). --- swarm_conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm_conn.go b/swarm_conn.go index cdb9866a..c09957c1 100644 --- a/swarm_conn.go +++ b/swarm_conn.go @@ -122,7 +122,7 @@ func (c *Conn) start() { func (c *Conn) String() string { return fmt.Sprintf( - " %s (%s)>", + " %s (%s)>", c.conn.Transport(), c.conn.LocalMultiaddr(), c.conn.LocalPeer().Pretty(),