Build the redb key for a core. Using a short string key is simpler and more debuggable than a raw byte key.
(core_id: usize)
| 144 | /// Build the redb key for a core. Using a short string key is simpler |
| 145 | /// and more debuggable than a raw byte key. |
| 146 | fn core_key(core_id: usize) -> String { |
| 147 | format!("core:{core_id}") |
| 148 | } |
| 149 | |
| 150 | #[cfg(test)] |
| 151 | mod tests { |