Skip to content

Commit

Permalink
server: remove redundant local variable
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
yuzefovich committed Sep 11, 2023
1 parent 961f45b commit 7b5d4ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/server/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,8 @@ func makeTenantSQLServerArgs(
circularJobRegistry := &jobs.Registry{}

// Initialize the protectedts subsystem in multi-tenant clusters.
var protectedTSProvider protectedts.Provider
protectedtsKnobs, _ := baseCfg.TestingKnobs.ProtectedTS.(*protectedts.TestingKnobs)
pp, err := ptprovider.New(ptprovider.Config{
protectedTSProvider, err := ptprovider.New(ptprovider.Config{
DB: internalExecutorFactory,
Settings: st,
Knobs: protectedtsKnobs,
Expand All @@ -1192,8 +1191,7 @@ func makeTenantSQLServerArgs(
if err != nil {
return sqlServerArgs{}, err
}
registry.AddMetricStruct(pp.Metrics())
protectedTSProvider = pp
registry.AddMetricStruct(protectedTSProvider.Metrics())

recorder := status.NewMetricsRecorder(
sqlCfg.TenantID, tenantNameContainer, nil /* nodeLiveness */, nil, /* remoteClocks */
Expand Down

0 comments on commit 7b5d4ea

Please sign in to comment.