mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 16:58:11 +08:00
p2p/net/swarm: dial adding conn note
This commit is contained in:
parent
25c6ab8a26
commit
8e888b1d79
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user