bandwidth limiting: use correct field name on error

fixup for f5f269bfd5 (bandwidth limiting)
This commit is contained in:
Christian Schwarz 2021-09-19 19:23:29 +02:00
parent 936ed73a45
commit 08df208149

View File

@ -48,7 +48,7 @@ func (c *SenderConfig) Validate() error {
return fmt.Errorf("JobID cannot be used for hold tag: %s", err)
}
if err := bandwidthlimit.ValidateConfig(c.BandwidthLimit); err != nil {
return errors.Wrap(err, "`Ratelimit` field invalid")
return errors.Wrap(err, "`BandwidthLimit` field invalid")
}
return nil
}
@ -494,7 +494,7 @@ func (c *ReceiverConfig) Validate() error {
}
if err := bandwidthlimit.ValidateConfig(c.BandwidthLimit); err != nil {
return errors.Wrap(err, "`Ratelimit` field invalid")
return errors.Wrap(err, "`BandwidthLimit` field invalid")
}
return nil