MCPcopy Index your code
hub / github.com/emwalker/digraph / fetch_link

Method fetch_link

backend/src/store.rs:137–143  ·  view source on GitHub ↗
(&self, link_id: ExternalId)

Source from the content-addressed store, hash-verified

135 }
136
137 pub async fn fetch_link(&self, link_id: ExternalId) -> Result<Option<git::Link>> {
138 let key = Okey(link_id, self.viewer.context_repo_id);
139 match self.object_loader.load_one(key).await? {
140 Some(object) => Ok(Some(object.try_into()?)),
141 None => Ok(None),
142 }
143 }
144
145 pub async fn fetch_links(
146 &self,

Callers

nothing calls this directly

Calls 2

OkeyClass · 0.85
try_intoMethod · 0.45

Tested by

no test coverage detected