File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -171,13 +171,13 @@ func (hs *ProxyHealthServer) Run(ctx context.Context) error {
171
171
172
172
listener , err := hs .listener .Listen (ctx , hs .addr )
173
173
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 )
175
175
}
176
176
177
177
klog .V (3 ).InfoS ("Starting healthz HTTP server" , "address" , hs .addr )
178
178
179
179
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 )
181
181
}
182
182
return nil
183
183
}
@@ -186,7 +186,7 @@ type healthzHandler struct {
186
186
hs * ProxyHealthServer
187
187
}
188
188
189
- func (h healthzHandler ) ServeHTTP (resp http.ResponseWriter , req * http.Request ) {
189
+ func (h healthzHandler ) ServeHTTP (resp http.ResponseWriter , _ * http.Request ) {
190
190
nodeEligible := h .hs .NodeEligible ()
191
191
healthy , lastUpdated := h .hs .isHealthy ()
192
192
currentTime := h .hs .clock .Now ()
You can’t perform that action at this time.
0 commit comments