Skip to content

Commit 0c76e93

Browse files
authored
fix: mismatch options (#10)
1 parent 516d30d commit 0c76e93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

options.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ func WithReqTimeout(timeout time.Duration) Options {
7373

7474
func WithMaxBatchItems(items int) Options {
7575
return optionFunc(func(o *options) {
76-
o.connPool = items
76+
o.maxBatchItems = items
7777
})
7878
}
7979

8080
func WithMaxBatchSize(size int) Options {
8181
return optionFunc(func(o *options) {
82-
o.connPool = size
82+
o.maxBatchSize = size
8383
})
8484
}
8585

0 commit comments

Comments
 (0)