refactor: Remove unneeded String allocation
parent
3afb2c6c70
commit
07b65e32d5
|
@ -222,7 +222,7 @@ impl RocksDB {
|
|||
name: &str,
|
||||
) -> Result<Option<Arc<Bucket>>, StorageError> {
|
||||
let buckets = self.bucket_map.read().unwrap();
|
||||
let key = bucket_key(org_id, &name.to_string());
|
||||
let key = bucket_key(org_id, name);
|
||||
match buckets.get(&key) {
|
||||
Some(b) => Ok(Some(b.clone())),
|
||||
None => Ok(None),
|
||||
|
|
Loading…
Reference in New Issue