mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Merge pull request #5147 from a-robinson/func
Re-add the defer statements around the monitor() calls in the apiserver.
This commit is contained in:
@@ -66,7 +66,7 @@ func (h *WatchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||
var apiResource string
|
||||
var httpCode int
|
||||
reqStart := time.Now()
|
||||
defer monitor("watch", verb, apiResource, httpCode, reqStart)
|
||||
defer monitor("watch", &verb, &apiResource, &httpCode, reqStart)
|
||||
|
||||
if req.Method != "GET" {
|
||||
notFound(w, req)
|
||||
|
Reference in New Issue
Block a user