mirror of
https://github.com/aljazceru/crawler_v2.git
synced 2025-12-17 07:24:21 +01:00
FetcherConfig.Validate: corrected <= to just <
This commit is contained in:
@@ -32,7 +32,7 @@ func (c FetcherConfig) Validate() error {
|
|||||||
return errors.New("kind list cannot be empty")
|
return errors.New("kind list cannot be empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Batch <= 1 {
|
if c.Batch < 1 {
|
||||||
return errors.New("batch value must be positive")
|
return errors.New("batch value must be positive")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user