File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ type Configuration struct {
132
132
ClientConfig ClientConfig `mapstructure:"client"`
133
133
SessionConfig SessionConfig `mapstructure:"session"`
134
134
UpstreamConfigs UpstreamConfigs `mapstructure:"upstream"`
135
- MetricsConfig MetricsConfig `mapstructrue :"metrics"`
135
+ MetricsConfig MetricsConfig `mapstructure :"metrics"`
136
136
LoggingConfig LoggingConfig `mapstructure:"logging"`
137
137
RequestSignerConfig RequestSignerConfig `mapstructure:"requestsigner"`
138
138
}
@@ -337,7 +337,6 @@ func (mc MetricsConfig) Validate() error {
337
337
if err := mc .StatsdConfig .Validate (); err != nil {
338
338
return fmt .Errorf ("invalid metrics.statsd config: %w" , err )
339
339
}
340
-
341
340
return nil
342
341
}
343
342
@@ -354,7 +353,6 @@ func (sc StatsdConfig) Validate() error {
354
353
if sc .Port == 0 {
355
354
return errors .New ("no statsd.port configured" )
356
355
}
357
-
358
356
return nil
359
357
}
360
358
You can’t perform that action at this time.
0 commit comments