Accept ConfigKit integers in module options
This commit is contained in:
@@ -155,7 +155,7 @@ func nonNegativeIntOption(name string, value any) (int, error) {
|
||||
}
|
||||
|
||||
func intOption(name string, value any) (int, error) {
|
||||
got, ok := value.(int)
|
||||
got, ok := pipeline.IntOption(value)
|
||||
if !ok {
|
||||
return 0, chunkerErrorf("%s must be an integer", name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user