Something went wrong while fetching comments. Please try again.
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.