Commit 8e888b1d authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

p2p/net/swarm: dial adding conn note

parent 25c6ab8a
......@@ -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 {
......
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