Skip to content

Commit

Permalink
Update libp2p option names
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Jun 15, 2024
1 parent 734ece3 commit 72b7008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dagsync/test/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func MkTestHost(t *testing.T, options ...libp2p.Option) host.Host {
// Do not limit connections per IP as all test connections go to localhost.
mgr, err := rcmgr.NewResourceManager(
rcmgr.NewFixedLimiter(rcmgr.DefaultLimits.AutoScale()),
rcmgr.WithLimitPeersPerCIDR([]rcmgr.ConnLimitPerCIDR{}, []rcmgr.ConnLimitPerCIDR{}),
rcmgr.WithLimitPerSubnet([]rcmgr.ConnLimitPerSubnet{}, []rcmgr.ConnLimitPerSubnet{}),
)
if err != nil {
panic(err)
Expand Down

0 comments on commit 72b7008

Please sign in to comment.