Search backend: clean up repo resolver pt. 2
Created by: camdencheek
Builds off of https://github.com/sourcegraph/sourcegraph/pull/38598
- Fix a typo
Dependecies
- Move dependency fetching logic into another method
- Refactor goroutine group to use
lib/group
to avoid bad behavior when returning early from semaphore error - Make variable declarations more consise
- Refactor to avoid mutating fields of a struct, preferring to build the fields then construct the struct with all the parts
- Avoid constructing a gitserver client for every rev, instead preferring to store the client on the resolver, which also makes it possible to pass in a mock client.
- Remove unused field
OverLimit
fromResolved
Test plan
Semantics-preserving, unit tests.