harmony-development/scherzo

make a wrapper return type over DB return types (like `IVec`) to not allocate a ...

todo opened this issue · 0 comments

todo commented

scherzo/src/db/mod.rs

Lines 69 to 72 in 62a5bd4

// TODO: make a wrapper return type over DB return types (like `IVec`) to not allocate a `Vec`
pub trait Tree: Send + Sync {
fn get(&self, key: &[u8]) -> DbResult<Option<Vec<u8>>>;
fn insert(&self, key: &[u8], value: &[u8]) -> DbResult<Option<Vec<u8>>>;


This issue was generated by todo based on a TODO comment in 62a5bd4. It's been assigned to @yusdacra because they committed the code.