Commit 50cbe2b6 authored by Steven Allen's avatar Steven Allen

fix: don't assume that transports implement stringer (#134)

If they don't, this could end up reading a bunch of internal data, causing a
race (and yes, this has happened).
parent 72a80131
......@@ -121,7 +121,7 @@ func (c *Conn) start() {
func (c *Conn) String() string {
return fmt.Sprintf(
"<swarm.Conn[%s] %s (%s) <-> %s (%s)>",
"<swarm.Conn[%T] %s (%s) <-> %s (%s)>",
c.conn.Transport(),
c.conn.LocalMultiaddr(),
c.conn.LocalPeer().Pretty(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment