Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78df683 commit f342d10Copy full SHA for f342d10
enterprise/coderd/proxyhealth/proxyhealth.go
@@ -215,7 +215,7 @@ func (p *ProxyHealth) ProxyHosts() []string {
215
// unreachable.
216
func (p *ProxyHealth) runOnce(ctx context.Context, now time.Time) (map[uuid.UUID]ProxyStatus, error) {
217
// Record from the given time.
218
- defer p.healthCheckDuration.Observe(time.Since(now).Seconds())
+ defer func() { p.healthCheckDuration.Observe(time.Since(now).Seconds()) }()
219
220
//nolint:gocritic // Proxy health is a system service.
221
proxies, err := p.db.GetWorkspaceProxies(dbauthz.AsSystemRestricted(ctx))
0 commit comments