Skip to content

Commit

Permalink
fix: pass correct buffer in bulk_overwrite_full_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Aug 23, 2024
1 parent c2a1540 commit 9111a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ufotofu/src/local_nb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ where
let mut produced_so_far = 0;

while produced_so_far < buf.len() {
match self.bulk_produce(buf).await {
match self.bulk_produce(&mut buf[produced_so_far..]).await {
Ok(Left(count)) => produced_so_far += count,
Ok(Right(fin)) => {
return Err(OverwriteFullSliceError {
Expand Down

0 comments on commit 9111a4c

Please sign in to comment.