提交 8e888b1d 作者: Juan Batiz-Benet

p2p/net/swarm: dial adding conn note

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论