Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Sep 9, 2023
1 parent 660cbcf commit 308f643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/mvcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async fn main() -> Result<(), KernelError> {
println!("Read key_1 on the transaction: {:?}", tx.get(b"key_1")?);

println!("Set KeyValue on the transaction -> (key_2, value_2)");
tx.set(b"key_2", Bytes::copy_from_slice(b"value_2"));
tx.set(Bytes::copy_from_slice(b"key_2"), Bytes::copy_from_slice(b"value_2"));

println!("Read key_2 on the transaction: {:?}", tx.get(b"key_2")?);

Expand Down
2 changes: 1 addition & 1 deletion src/kernel/lsm/mvcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ mod tests {
let mut tx_1 = kv_store.new_transaction().await;

for i in 100..times {
tx_1.set(&vec_kv[i].0, vec_kv[i].1.clone());
tx_1.set(vec_kv[i].0.clone(), vec_kv[i].1.clone());
}

tx_1.remove(&vec_kv[times - 1].0)?;
Expand Down

0 comments on commit 308f643

Please sign in to comment.