Parcourir la source

disable metrics

Signed-off-by: mudler <[email protected]>
mudler il y a 1 an
Parent
commit
ea01146ff2
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      pkg/config/config.go

+ 2 - 0
pkg/config/config.go

@@ -288,6 +288,8 @@ func (c Config) ToOpts(l *logger.Logger) ([]node.Option, []vpn.Option, error) {
 		llger.Infof("connmanager disabled")
 		llger.Infof("connmanager disabled")
 	}
 	}
 
 
+	libp2pOpts = append(libp2pOpts, libp2p.DisableMetrics())
+
 	if !c.Limit.Enable || runtime.GOOS == "darwin" {
 	if !c.Limit.Enable || runtime.GOOS == "darwin" {
 		llger.Info("go-libp2p resource manager protection disabled")
 		llger.Info("go-libp2p resource manager protection disabled")
 		libp2pOpts = append(libp2pOpts, libp2p.ResourceManager(&network.NullResourceManager{}))
 		libp2pOpts = append(libp2pOpts, libp2p.ResourceManager(&network.NullResourceManager{}))