Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
remove JobArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Apr 11, 2022
1 parent 6309f91 commit 5235252
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
9 changes: 0 additions & 9 deletions cmd/frontend/graphqlbackend/search_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,15 +439,6 @@ func LogSearchLatency(ctx context.Context, db database.DB, wg *sync.WaitGroup, s
}
}

// JobArgs converts the parts of search resolver state to values needed to create search jobs.
func (r *searchResolver) JobArgs() *jobutil.Args {
return &jobutil.Args{
SearchInputs: r.SearchInputs,
Zoekt: r.zoekt,
SearcherURLs: r.searcherURLs,
}
}

func (r *searchResolver) JobClients() job.RuntimeClients {
return job.RuntimeClients{
DB: r.db,
Expand Down
8 changes: 0 additions & 8 deletions internal/search/job/jobutil/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import (
"strconv"
"strings"

"github.com/google/zoekt"
"github.com/grafana/regexp"
"github.com/inconshreveable/log15"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

"github.com/sourcegraph/sourcegraph/internal/authz"
"github.com/sourcegraph/sourcegraph/internal/database"
"github.com/sourcegraph/sourcegraph/internal/endpoint"
"github.com/sourcegraph/sourcegraph/internal/featureflag"
"github.com/sourcegraph/sourcegraph/internal/search"
"github.com/sourcegraph/sourcegraph/internal/search/commit"
Expand All @@ -32,12 +30,6 @@ import (
"github.com/sourcegraph/sourcegraph/schema"
)

type Args struct {
SearchInputs *run.SearchInputs
Zoekt zoekt.Streamer
SearcherURLs *endpoint.Map
}

// ToSearchJob converts a query parse tree to the _internal_ representation
// needed to run a search routine. To understand why this conversion matters, think
// about the fact that the query parse tree doesn't know anything about our
Expand Down

0 comments on commit 5235252

Please sign in to comment.