mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
bandwidth limiting: use correct field name on error
fixup for f5f269bfd5
(bandwidth limiting)
This commit is contained in:
parent
936ed73a45
commit
08df208149
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user