Skip to content

Commit

Permalink
Remove duplicate function
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchatruc committed Nov 29, 2024
1 parent 2da7fb9 commit 4dec142
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions crates/storage/store/engines/redb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,27 +124,6 @@ impl RedBStore {
Ok(())
}

// Helper method to write into a redb table
fn write_to_multi<'k, 'v, 'a, K, V>(
&self,
table: MultimapTableDefinition<'a, K, V>,
key: impl Borrow<K::SelfType<'k>>,
value: impl Borrow<V::SelfType<'v>>,
) -> Result<(), StoreError>
where
K: Key + 'static,
V: Key + 'static,
{
let write_txn = self.db.begin_write()?;
{
let mut table = write_txn.open_multimap_table(table)?;
table.insert(key, value)?;
}
write_txn.commit()?;

Ok(())
}

// Helper method to write into a redb table
fn write_to_multi_batch<'k, 'v, 'a, K, V>(
&self,
Expand Down

0 comments on commit 4dec142

Please sign in to comment.