Skip to content

Commit

Permalink
disable metrics
Browse files Browse the repository at this point in the history
Signed-off-by: mudler <[email protected]>
  • Loading branch information
mudler committed Oct 30, 2023
1 parent aa77d99 commit ea01146
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ func (c Config) ToOpts(l *logger.Logger) ([]node.Option, []vpn.Option, error) {
llger.Infof("connmanager disabled")
}

libp2pOpts = append(libp2pOpts, libp2p.DisableMetrics())

if !c.Limit.Enable || runtime.GOOS == "darwin" {
llger.Info("go-libp2p resource manager protection disabled")
libp2pOpts = append(libp2pOpts, libp2p.ResourceManager(&network.NullResourceManager{}))
Expand Down

0 comments on commit ea01146

Please sign in to comment.