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

Method fetch_topics_with_context

backend/src/store.rs:208–219  ·  view source on GitHub ↗
(
        &self,
        topic_ids: Vec<ExternalId>,
        take: usize,
        context_id: RepoId,
    )

Source from the content-addressed store, hash-verified

206 }
207
208 pub async fn fetch_topics_with_context(
209 &self,
210 topic_ids: Vec<ExternalId>,
211 take: usize,
212 context_id: RepoId,
213 ) -> Result<BTreeSet<git::Topic>> {
214 self.fetch_objects_with_context(topic_ids, take, context_id)
215 .await?
216 .into_iter()
217 .map(git::Topic::try_from)
218 .collect::<Result<BTreeSet<git::Topic>>>()
219 }
220
221 fn mutation(&self) -> Result<git::Mutation> {
222 self.git.mutation(git::IndexMode::Update)

Callers 3

fetch_topicsMethod · 0.80
display_parent_topicsMethod · 0.80
display_parent_topicsMethod · 0.80

Calls 1

Tested by

no test coverage detected