From 8f62e08e9cda043ad56b55c8a6048adb1d005864 Mon Sep 17 00:00:00 2001 From: sukun Date: Tue, 2 Jul 2024 15:42:35 +0530 Subject: [PATCH] improve comment --- p2p/transport/quicreuse/options.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p2p/transport/quicreuse/options.go b/p2p/transport/quicreuse/options.go index 30d07d4443..e87574df76 100644 --- a/p2p/transport/quicreuse/options.go +++ b/p2p/transport/quicreuse/options.go @@ -11,7 +11,8 @@ func DisableReuseport() Option { } } -// EnableMetrics enables Prometheus metrics collection. +// EnableMetrics enables Prometheus metrics collection. If reg is nil, +// prometheus.DefaultRegisterer will be used as the registerer. func EnableMetrics(reg prometheus.Registerer) Option { return func(m *ConnManager) error { m.enableMetrics = true