Skip to content

Commit

Permalink
feat: detect changes in go-libp2p-resource-manager
Browse files Browse the repository at this point in the history
This adds simple check that will scream loud and clear every time
go-libp2p libraries change any of the implicit defaults
related to go-libp2p-resource-manager
  • Loading branch information
lidel committed Apr 8, 2022
1 parent 514411b commit 383ba08
Show file tree
Hide file tree
Showing 4 changed files with 594 additions and 242 deletions.
2 changes: 1 addition & 1 deletion core/node/libp2p/rcmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func ResourceManager(cfg config.SwarmConfig) func(fx.Lifecycle, repo.Repo) (netw
return nil, opts, err
}

setDefaultServiceLimits(limiter) // see rcmgr_defaults.go
libp2p.SetDefaultServiceLimits(limiter)

ropts := []rcmgr.Option{rcmgr.WithMetrics(createRcmgrMetrics())}

Expand Down
Loading

0 comments on commit 383ba08

Please sign in to comment.