Skip to content

Commit

Permalink
fix: mismatch options (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaktaeho authored Nov 5, 2024
1 parent 516d30d commit 0c76e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ func WithReqTimeout(timeout time.Duration) Options {

func WithMaxBatchItems(items int) Options {
return optionFunc(func(o *options) {
o.connPool = items
o.maxBatchItems = items
})
}

func WithMaxBatchSize(size int) Options {
return optionFunc(func(o *options) {
o.connPool = size
o.maxBatchSize = size
})
}

Expand Down

0 comments on commit 0c76e93

Please sign in to comment.