Skip to content

Commit

Permalink
server: pass ctx to startTenant
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
tbg committed Jun 2, 2020
1 parent 1e6e1d4 commit 2825c9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/server/testserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ func (ts *TestServer) StartTenant(params base.TestTenantArgs) (pgAddr string, _
}
}
return startTenant(
ctx,
ts.Stopper(),
ts.Cfg.ClusterName,
ts.RPCAddr(),
Expand All @@ -629,14 +630,14 @@ func (ts *TestServer) StartTenant(params base.TestTenantArgs) (pgAddr string, _
}

func startTenant(
ctx context.Context,
stopper *stop.Stopper,
kvClusterName string, // NB: gone after https://github.com/cockroachdb/cockroach/issues/42519
tsRPCAddr string,
baseCfg BaseConfig,
sqlCfg SQLConfig,
) (pgAddr string, _ error) {
args := makeSQLServerArgs(stopper, kvClusterName, baseCfg, sqlCfg)
ctx := context.Background()
s, err := newSQLServer(ctx, args)
if err != nil {
return "", err
Expand Down

0 comments on commit 2825c9d

Please sign in to comment.