MCPcopy Create free account
hub / github.com/emwalker/digraph / fetch_links

Method fetch_links

backend/src/store.rs:145–156  ·  view source on GitHub ↗
(
        &self,
        link_ids: &[ExternalId],
        take: usize,
        _reviewed: Option<bool>,
    )

Source from the content-addressed store, hash-verified

143 }
144
145 pub async fn fetch_links(
146 &self,
147 link_ids: &[ExternalId],
148 take: usize,
149 _reviewed: Option<bool>,
150 ) -> Result<BTreeSet<git::Link>> {
151 self.fetch_objects(link_ids.to_owned(), take)
152 .await?
153 .into_iter()
154 .map(git::Link::try_from)
155 .collect::<Result<BTreeSet<git::Link>>>()
156 }
157
158 pub async fn fetch_objects(
159 &self,

Callers

nothing calls this directly

Calls 1

fetch_objectsMethod · 0.80

Tested by

no test coverage detected