use hashset for closure

This commit is contained in:
cy 2025-04-28 21:39:14 -04:00
parent 09181ae785
commit 76cbc85032
2 changed files with 5 additions and 3 deletions

View file

@ -13,7 +13,7 @@ use url::Url;
use crate::store::Store;
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct PathInfo {
pub path: StorePath<String>,
pub signatures: Vec<String>,
@ -59,6 +59,7 @@ impl PathInfo {
.context("query pathinfo for path")
}
// TODO: skip call to query_path_info and return Vec<Path>?
pub async fn get_closure(&self, store: &Store) -> Result<Vec<Self>> {
let futs = store
.compute_fs_closure(self.path.clone())