Skip to content

Commit af24c7b

Browse files
committed
fix typo
1 parent a99aa87 commit af24c7b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/proxy/configuration.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type Configuration struct {
132132
ClientConfig ClientConfig `mapstructure:"client"`
133133
SessionConfig SessionConfig `mapstructure:"session"`
134134
UpstreamConfigs UpstreamConfigs `mapstructure:"upstream"`
135-
MetricsConfig MetricsConfig `mapstructrue:"metrics"`
135+
MetricsConfig MetricsConfig `mapstructure:"metrics"`
136136
LoggingConfig LoggingConfig `mapstructure:"logging"`
137137
RequestSignerConfig RequestSignerConfig `mapstructure:"requestsigner"`
138138
}
@@ -337,7 +337,6 @@ func (mc MetricsConfig) Validate() error {
337337
if err := mc.StatsdConfig.Validate(); err != nil {
338338
return fmt.Errorf("invalid metrics.statsd config: %w", err)
339339
}
340-
341340
return nil
342341
}
343342

@@ -354,7 +353,6 @@ func (sc StatsdConfig) Validate() error {
354353
if sc.Port == 0 {
355354
return errors.New("no statsd.port configured")
356355
}
357-
358356
return nil
359357
}
360358

0 commit comments

Comments
 (0)