@cryptotaxi247 / kubo / commits / 8e888b1d7

p2p/net/swarm: dial adding conn note

Juan Batiz-Benet committed Jan 13, 2015 at 01:23 UTC 8e888b1d797d513e6224880204741925e41ecc71
1 file changed +1
p2p/net/swarm/swarm_dial.go
+1
@@ -127,6 +127,7 @@ func (s *Swarm) Dial(ctx context.Context, p peer.ID) (*Conn, error) {
127 }
128
129 // ok, we have been charged to dial! let's do it.
130 + // if it succeeds, dial will add the conn to the swarm itself.
131 conn, err = s.dial(ctx, p)
132 s.dsync.Unlock(p)
133 if err != nil {