From 72dcf5a18fde293b86a4a054663e800165fad63b Mon Sep 17 00:00:00 2001 From: Fabian Murariu Date: Tue, 2 Jul 2024 12:46:09 +0100 Subject: [PATCH] removed the comments and sorted out the imports --- raphtory/src/core/storage/raw_edges.rs | 15 --------------- raphtory/src/db/api/storage/edges/edges.rs | 7 +++---- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/raphtory/src/core/storage/raw_edges.rs b/raphtory/src/core/storage/raw_edges.rs index b3119fe830..0325400751 100644 --- a/raphtory/src/core/storage/raw_edges.rs +++ b/raphtory/src/core/storage/raw_edges.rs @@ -113,21 +113,6 @@ impl EdgesStorage { edge } - // #[inline] - // pub(crate) fn entry(&self, id: EID) -> EdgeRGuard { - // self.get_edge(id) - // } - - // #[inline] - // pub(crate) fn entry_mut(&self, id: EID) -> EdgeWGuard { - // self.get_edge_mut(id) - // } - - // #[inline] - // pub(crate) fn entry_arc(&self, id: EID) -> EdgeArcGuard { - // self.get_edge_arc(id) - // } - pub fn read_lock(&self) -> LockedEdges { LockedEdges { shards: self.shards.iter().map(|shard| shard.read_arc()).collect(), diff --git a/raphtory/src/db/api/storage/edges/edges.rs b/raphtory/src/db/api/storage/edges/edges.rs index cfc2443d11..7d99deb8d9 100644 --- a/raphtory/src/db/api/storage/edges/edges.rs +++ b/raphtory/src/db/api/storage/edges/edges.rs @@ -3,11 +3,10 @@ use super::{edge_entry::EdgeStorageEntry, unlocked::UnlockedEdges}; use crate::disk_graph::storage_interface::{edges::DiskEdges, edges_ref::DiskEdgesRef}; use crate::{ core::{entities::LayerIds, storage::raw_edges::LockedEdges}, - db::api::storage::edges::edge_storage_ops::EdgeStorageOps, + db::api::storage::{ + edges::edge_storage_ops::EdgeStorageOps, variants::storage_variants3::StorageVariants, + }, }; - -use crate::db::api::storage::variants::storage_variants3::StorageVariants; - use rayon::iter::ParallelIterator; use std::sync::Arc;