Set correct field in WithMinSplitSize

Fixes #51
master
Klaus Post 2017-05-28 12:38:06 +02:00
parent 5abf0ee302
commit dde6ad55c5
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func WithMaxGoroutines(n int) Option {
func WithMinSplitSize(n int) Option {
return func(o *options) {
if n > 0 {
o.maxGoroutines = n
o.minSplitSize = n
}
}
}