aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres
diff options
context:
space:
mode:
Diffstat (limited to 'internal/postgres')
-rw-r--r--internal/postgres/search.go1
-rw-r--r--internal/postgres/symbolsearch.go4
2 files changed, 0 insertions, 5 deletions
diff --git a/internal/postgres/search.go b/internal/postgres/search.go
index 4015aa73..bdc2c30d 100644
--- a/internal/postgres/search.go
+++ b/internal/postgres/search.go
@@ -235,7 +235,6 @@ func (db *DB) hedgedSearch(ctx context.Context, q string, limit int, opts Search
// Fan out our search requests.
for _, s := range searchers {
- s := s
go func() {
start := time.Now()
resp := s(db, searchCtx, q, limit, opts)
diff --git a/internal/postgres/symbolsearch.go b/internal/postgres/symbolsearch.go
index 7b36b7e4..f1a273e6 100644
--- a/internal/postgres/symbolsearch.go
+++ b/internal/postgres/symbolsearch.go
@@ -170,8 +170,6 @@ func runSymbolSearchMultiWord(ctx context.Context, ddb *database.DB, q string, l
resultsArray := make([][]*SearchResult, len(symbolToPathTokens))
count := 0
for symbol, pathTokens := range symbolToPathTokens {
- symbol := symbol
- pathTokens := pathTokens
i := count
count += 1
group.Go(func() error {
@@ -265,8 +263,6 @@ func runSymbolSearchOneDot(ctx context.Context, ddb *database.DB, q string, limi
search.SearchTypeSymbol,
search.SearchTypePackageDotSymbol,
} {
- i := i
- st := st
group.Go(func() error {
var (
results []*SearchResult