mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-16 05:05:17 +00:00
19 lines
340 B
Go
19 lines
340 B
Go
|
package quicreuse
|
||
|
|
||
|
type Option func(*ConnManager) error
|
||
|
|
||
|
func DisableReuseport() Option {
|
||
|
return func(m *ConnManager) error {
|
||
|
m.enableReuseport = false
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// EnableMetrics enables Prometheus metrics collection.
|
||
|
func EnableMetrics() Option {
|
||
|
return func(m *ConnManager) error {
|
||
|
m.enableMetrics = true
|
||
|
return nil
|
||
|
}
|
||
|
}
|