Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Jul 31, 2024
1 parent 5146e73 commit 8f62e08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/transport/quicreuse/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f62e08

Please sign in to comment.