diff options
-rw-r--r-- | tvix/store/src/blobservice/memory.rs | 2 | ||||
-rw-r--r-- | tvix/store/src/blobservice/sled.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/blobservice/memory.rs b/tvix/store/src/blobservice/memory.rs index a53f8991498b..244055258ef9 100644 --- a/tvix/store/src/blobservice/memory.rs +++ b/tvix/store/src/blobservice/memory.rs @@ -79,7 +79,7 @@ impl std::io::Write for MemoryBlobWriter { )), Some((ref mut buf, ref mut hasher)) => { let bytes_written = buf.write(b)?; - hasher.write(&buf[..bytes_written]) + hasher.write(&b[..bytes_written]) } } } diff --git a/tvix/store/src/blobservice/sled.rs b/tvix/store/src/blobservice/sled.rs index 2b8f9e7bbb13..22dcd757f2bb 100644 --- a/tvix/store/src/blobservice/sled.rs +++ b/tvix/store/src/blobservice/sled.rs @@ -108,7 +108,7 @@ impl io::Write for SledBlobWriter { )), Some((ref mut buf, ref mut hasher)) => { let bytes_written = buf.write(b)?; - hasher.write(&buf[..bytes_written]) + hasher.write(&b[..bytes_written]) } } } |