diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/config.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/model/config.go b/model/config.go index f9a1d4861..6288a036b 100644 --- a/model/config.go +++ b/model/config.go @@ -99,8 +99,9 @@ type ClusterSettings struct { } type MetricsSettings struct { - Enable *bool - ListenAddress *string + Enable *bool + BlockProfileRate *int + ListenAddress *string } type SSOSettings struct { @@ -974,6 +975,11 @@ func (o *Config) SetDefaults() { *o.ServiceSettings.Forward80To443 = false } + if o.MetricsSettings.BlockProfileRate == nil { + o.MetricsSettings.BlockProfileRate = new(int) + *o.MetricsSettings.BlockProfileRate = 0 + } + o.defaultWebrtcSettings() } |