finish 3.2 3.3

Signed-off-by: Alex Chi Z <iskyzh@gmail.com>
This commit is contained in:
Alex Chi Z
2024-01-29 22:44:49 +08:00
parent 3cecf09d59
commit 1e49ba8a07
5 changed files with 184 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ pub struct Key<T: AsRef<[u8]>>(T);
...to:
```rust,no_run
pub struct Key<T: AsRef<[u8]>>(T, u64);
pub struct Key<T: AsRef<[u8]>>(T /* user key */, u64 /* timestamp */);
```
...where we have a timestamp associated with the keys. We only use this key representation internally in the system. On the user interface side, we do not ask users to provide a timestamp, and therefore some structures still use `&[u8]` instead of `KeySlice` in the engine. We will cover the places where we need to change the signature of the functions later. For now, you only need to run,