Skip to content

Commit

Permalink
bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaxim committed Jun 11, 2024
1 parent 753a385 commit 93cc045
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Cargo.lock
**/*.rs.bk

.idea
/.vscode/
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ where
me.items.push(item);
*me.current_batch_size += new_count;
if me.current_batch_size >= me.min_batch_size {
*me.current_batch_size = 0;
return Poll::Ready(Some(std::mem::take(me.items)));
}
}
Expand Down

0 comments on commit 93cc045

Please sign in to comment.