Search: lift out searcher callout in frontend.
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: rvantonder
searchFilesinRepos
and only does "run all of these (unindexed repos) through searcher endpoint".Such a function cannot be extracted to the top level because it runs goroutines that rely on addMatches
(which seeks to be race safe), and is also inlined. This PR extracts the desired logic into a dedicated inline function callSearcherOverRepos
, which I will use in subsequent diffs to call out to searcher for structural search.
What I need is for Go experts to confirm that what I've done here is semantics preserving and race safe.
Push commits to the source branch or add previously merged commits to review them.