Skip to content

Commit

Permalink
Merge pull request #148 from libp2p/rcmgr
Browse files Browse the repository at this point in the history
use the resource manager
  • Loading branch information
marten-seemann committed Jan 18, 2022
2 parents e8ad0c4 + 1486de4 commit 7795029
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/protocol/internal/circuitv1-deprecated/dial.go
Expand Up @@ -17,7 +17,8 @@ func (d *RelayTransport) Dial(ctx context.Context, a ma.Multiaddr, p peer.ID) (t
return nil, err
}
c.tagHop()
return d.upgrader.Upgrade(ctx, d, c, network.DirOutbound, p)
scope, _ := network.NullResourceManager.OpenConnection(network.DirOutbound, false)
return d.upgrader.Upgrade(ctx, d, c, network.DirOutbound, p, scope)
}

func (r *Relay) Dial(ctx context.Context, a ma.Multiaddr, p peer.ID) (*Conn, error) {
Expand Down

0 comments on commit 7795029

Please sign in to comment.