From dde6ad55c5e5a6379a4e82dcca32ee407346eb6d Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Sun, 28 May 2017 12:38:06 +0200 Subject: [PATCH] Set correct field in WithMinSplitSize Fixes #51 --- options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.go b/options.go index 9f285fc..3fbedd6 100644 --- a/options.go +++ b/options.go @@ -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 } } }