Skip to content

Commit 2654c1a

Browse files
committed
fix cast
1 parent 5aedcdc commit 2654c1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

agent/apphealth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func NewWorkspaceAppHealthReporter(logger slog.Logger, client *codersdk.Client)
6767
}
6868

6969
client := &http.Client{
70-
Timeout: time.Duration(time.Duration(app.Healthcheck.Interval) * time.Second),
70+
Timeout: time.Duration(app.Healthcheck.Interval) * time.Second,
7171
}
7272
err := func() error {
7373
req, err := http.NewRequestWithContext(ctx, http.MethodGet, app.Healthcheck.URL, nil)

examples/templates/docker/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ resource "coder_app" "code-server" {
4848
url = "http://localhost:13337/?folder=/home/coder"
4949
icon = "/icon/code.svg"
5050
healthcheck {
51-
url = "http://localhost:13337/healthz"
52-
interval = 5
51+
url = "http://localhost:13337/healthz"
52+
interval = 5
5353
threshold = 6
5454
}
5555
}

0 commit comments

Comments
 (0)