From 8e888b1d797d513e6224880204741925e41ecc71 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Tue, 13 Jan 2015 01:23:43 -0800 Subject: [PATCH] p2p/net/swarm: dial adding conn note --- p2p/net/swarm/swarm_dial.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/net/swarm/swarm_dial.go b/p2p/net/swarm/swarm_dial.go index 38685467e..4d118f84c 100644 --- a/p2p/net/swarm/swarm_dial.go +++ b/p2p/net/swarm/swarm_dial.go @@ -127,6 +127,7 @@ func (s *Swarm) Dial(ctx context.Context, p peer.ID) (*Conn, error) { } // ok, we have been charged to dial! let's do it. + // if it succeeds, dial will add the conn to the swarm itself. conn, err = s.dial(ctx, p) s.dsync.Unlock(p) if err != nil {