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

Method repo

backend/src/graphql/topic.rs:126–138  ·  view source on GitHub ↗
(&self, ctx: &Context<'_>)

Source from the content-addressed store, hash-verified

124 }
125
126 async fn repo(&self, ctx: &Context<'_>) -> Result<Repository> {
127 match ctx
128 .data_unchecked::<Store>()
129 .repo(self.0.repo_id.to_string())
130 .await
131 {
132 Ok(Some(repo)) => Ok(repo),
133 _ => Err(Error::NotFound(format!(
134 "repo not found: {}",
135 self.0.repo_id
136 ))),
137 }
138 }
139
140 async fn repo_id(&self) -> String {
141 self.0.repo_id.to_string()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected