Skip to content

Commit 0645f0e

Browse files
committed
pkg/proxy/healthcheck: file rename
Signed-off-by: Daman Arora <[email protected]>
1 parent d6c5755 commit 0645f0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/proxy/healthcheck/proxier_health.go renamed to pkg/proxy/healthcheck/proxy_health.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ func (hs *ProxyHealthServer) Run(ctx context.Context) error {
171171

172172
listener, err := hs.listener.Listen(ctx, hs.addr)
173173
if err != nil {
174-
return fmt.Errorf("failed to start proxy healthz on %s: %v", hs.addr, err)
174+
return fmt.Errorf("failed to start proxy healthz on %s: %w", hs.addr, err)
175175
}
176176

177177
klog.V(3).InfoS("Starting healthz HTTP server", "address", hs.addr)
178178

179179
if err := server.Serve(listener); err != nil {
180-
return fmt.Errorf("proxy healthz closed with error: %v", err)
180+
return fmt.Errorf("proxy healthz closed with error: %w", err)
181181
}
182182
return nil
183183
}
@@ -186,7 +186,7 @@ type healthzHandler struct {
186186
hs *ProxyHealthServer
187187
}
188188

189-
func (h healthzHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
189+
func (h healthzHandler) ServeHTTP(resp http.ResponseWriter, _ *http.Request) {
190190
nodeEligible := h.hs.NodeEligible()
191191
healthy, lastUpdated := h.hs.isHealthy()
192192
currentTime := h.hs.clock.Now()

0 commit comments

Comments
 (0)