Skip to content

Commit d221c46

Browse files
committed
cleanup
1 parent cadbaa8 commit d221c46

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

coderd/coderd.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ func New(options *Options) *API {
342342
if err != nil {
343343
panic(xerrors.Errorf("get deployment ID: %w", err))
344344
}
345-
346345
api := &API{
347346
ctx: ctx,
348347
cancel: cancel,

enterprise/coderd/coderd.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
9191
}
9292
options.Database = cryptDB
9393

94-
licenseMetricsCollector := new(license.MetricsCollector)
95-
9694
api := &API{
9795
ctx: ctx,
9896
cancel: cancelFunc,
@@ -102,7 +100,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
102100
psk: options.ProvisionerDaemonPSK,
103101
authorizer: options.Authorizer,
104102
},
105-
licenseMetricsCollector: licenseMetricsCollector,
103+
licenseMetricsCollector: new(license.MetricsCollector),
106104
}
107105
defer func() {
108106
if err != nil {
@@ -368,7 +366,6 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
368366
if err != nil {
369367
return nil, xerrors.Errorf("initialize proxy health: %w", err)
370368
}
371-
372369
go api.ProxyHealth.Run(ctx)
373370
// Force the initial loading of the cache. Do this in a go routine in case
374371
// the calls to the workspace proxies hang and this takes some time.

0 commit comments

Comments
 (0)