Skip to content

Commit

Permalink
server: remove unused apiv2 server field
Browse files Browse the repository at this point in the history
Epic: None
Resolves: #91829
Release note: None
  • Loading branch information
dhartunian committed Nov 14, 2022
1 parent fed5abb commit 460fea4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions pkg/server/api_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import (
"strconv"

"github.com/cockroachdb/cockroach/pkg/kv"
"github.com/cockroachdb/cockroach/pkg/roachpb"
"github.com/cockroachdb/cockroach/pkg/security/username"
"github.com/cockroachdb/cockroach/pkg/server/serverpb"
"github.com/cockroachdb/cockroach/pkg/server/telemetry"
Expand Down Expand Up @@ -82,7 +81,6 @@ type apiV2ServerOpts struct {
admin *adminServer
status *statusServer
promRuleExporter *metric.PrometheusRuleExporter
tenantID roachpb.TenantID
sqlServer *SQLServer
db *kv.DB
}
Expand All @@ -100,7 +98,6 @@ type apiV2Server struct {
status *statusServer
promRuleExporter *metric.PrometheusRuleExporter
mux *mux.Router
tenantID roachpb.TenantID
sqlServer *SQLServer
db *kv.DB
}
Expand Down
1 change: 0 additions & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,6 @@ func (s *Server) PreStart(ctx context.Context) error {
admin: s.admin,
status: s.status,
promRuleExporter: s.promRuleExporter,
tenantID: roachpb.SystemTenantID,
sqlServer: s.sqlServer,
db: s.db,
}), /* apiServer */
Expand Down
1 change: 0 additions & 1 deletion pkg/server/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ func (s *SQLServerWrapper) PreStart(ctx context.Context) error {
s.debug, /* handleDebugUnauthenticated */
newAPIV2Server(workersCtx, &apiV2ServerOpts{
sqlServer: s.sqlServer,
tenantID: s.sqlCfg.TenantID,
db: s.db,
}), /* apiServer */
); err != nil {
Expand Down

0 comments on commit 460fea4

Please sign in to comment.