optimize column family handles
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0613140130
commit
972037dcd9
2 changed files with 47 additions and 6 deletions
|
@ -112,7 +112,7 @@ impl Engine {
|
|||
Ok(self.cf(name))
|
||||
}
|
||||
|
||||
pub(crate) fn cf<'db>(&'db self, name: &str) -> Arc<BoundColumnFamily<'db>> {
|
||||
pub(crate) fn cf(&self, name: &str) -> Arc<BoundColumnFamily<'_>> {
|
||||
self.db
|
||||
.cf_handle(name)
|
||||
.expect("column was created and exists")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue