Skip to content

Commit 00ecb29

Browse files
committed
Remove unused RefreshInterval
1 parent 0da2940 commit 00ecb29

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

cli/server.go

-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ func server() *cobra.Command {
259259
options.Monitor = monitoring.New(cmd.Context(), &monitoring.Options{
260260
Database: options.Database,
261261
Logger: options.Logger,
262-
RefreshInterval: time.Hour,
263262
Telemetry: telemetry,
264263
})
265264

coderd/coderdtest/coderdtest.go

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ func New(t *testing.T, options *Options) *codersdk.Client {
148148
Monitor: monitoring.New(ctx, &monitoring.Options{
149149
Database: db,
150150
Logger: slogtest.Make(t, nil),
151-
RefreshInterval: time.Minute,
152151
Telemetry: monitoring.TelemetryNone,
153152
}),
154153
SSHKeygenAlgorithm: options.SSHKeygenAlgorithm,

coderd/monitoring/monitoring.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package monitoring
33
import (
44
"context"
55
"strings"
6-
"time"
76

87
"github.com/prometheus/client_golang/prometheus"
98
"golang.org/x/xerrors"
@@ -38,10 +37,9 @@ func ParseTelemetry(t string) (Telemetry, error) {
3837
}
3938

4039
type Options struct {
41-
Database database.Store
42-
Logger slog.Logger
43-
RefreshInterval time.Duration
44-
Telemetry Telemetry
40+
Database database.Store
41+
Logger slog.Logger
42+
Telemetry Telemetry
4543
}
4644

4745
// Monitor provides Prometheus registries on which to register metric

0 commit comments

Comments
 (0)