mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-24 17:35:01 +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)
|
return fmt.Errorf("JobID cannot be used for hold tag: %s", err)
|
||||||
}
|
}
|
||||||
if err := bandwidthlimit.ValidateConfig(c.BandwidthLimit); err != nil {
|
if err := bandwidthlimit.ValidateConfig(c.BandwidthLimit); err != nil {
|
||||||
return errors.Wrap(err, "`Ratelimit` field invalid")
|
return errors.Wrap(err, "`BandwidthLimit` field invalid")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -494,7 +494,7 @@ func (c *ReceiverConfig) Validate() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := bandwidthlimit.ValidateConfig(c.BandwidthLimit); err != nil {
|
if err := bandwidthlimit.ValidateConfig(c.BandwidthLimit); err != nil {
|
||||||
return errors.Wrap(err, "`Ratelimit` field invalid")
|
return errors.Wrap(err, "`BandwidthLimit` field invalid")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user