Skip to content

Commit

Permalink
increase eg limit to the MaxBatchSize
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak committed Sep 15, 2023
1 parent 66bc79c commit 3a85405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cache/bbolt/bbolt.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (b *Bbolt) Set(key string, val []byte) error {

func (b *Bbolt) SetBatch(kv map[string]struct{}) error {
eg, _ := errgroup.WithContext(context.Background())
eg.SetLimit(200)
eg.SetLimit(b.db.MaxBatchSize)
for k := range kv {
key := k
eg.Go(func() error {
Expand Down

0 comments on commit 3a85405

Please sign in to comment.