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

Method call

backend/src/git/search.rs:151–165  ·  view source on GitHub ↗
(&self, client: &Client)

Source from the content-addressed store, hash-verified

149
150impl FetchTopicLiveSearch {
151 pub fn call(&self, client: &Client) -> Result<FetchTopicLiveSearchResult> {
152 if self.search.tokens.is_empty() {
153 log::info!("empty search, returning no results");
154 return Ok(FetchTopicLiveSearchResult {
155 synonyms: BTreeSet::new(),
156 });
157 }
158
159 log::info!("searching for topics: {:?}", self.search);
160 let matches = self.fetch(client);
161
162 Ok(FetchTopicLiveSearchResult {
163 synonyms: matches.iter().take(self.limit).cloned().collect(),
164 })
165 }
166
167 fn fetch(&self, client: &Client) -> BTreeSet<SynonymEntry> {
168 let mut matches = BTreeSet::new();

Callers

nothing calls this directly

Calls 6

topics_onlyMethod · 0.80
fetch_downsetMethod · 0.80
fetch_matchesMethod · 0.80
is_emptyMethod · 0.45
fetchMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected