We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12aeb12 commit dfadd59Copy full SHA for dfadd59
src/storage/chunk_engine/src/core/engine.rs
@@ -661,7 +661,7 @@ impl Engine {
661
const BATCH_SIZE: Size = Size::mebibyte(1);
662
let mut write_batch = RocksDB::new_write_batch();
663
for (chunk_id, meta) in &mut chunks {
664
- if write_batch.size_in_bytes() >= BATCH_SIZE.0 as _ {
+ if write_batch.size_in_bytes() >= BATCH_SIZE.0 as usize {
665
self.meta_store.write(write_batch, true)?;
666
write_batch = RocksDB::new_write_batch();
667
}
0 commit comments