Skip to content

Commit

Permalink
Removed duplicate counting for proxied response duration in serverFro…
Browse files Browse the repository at this point in the history
…mCache, since it is already counted in the proxyRequest
  • Loading branch information
valyala committed Nov 3, 2017
1 parent ab00038 commit 7360cea
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ func (rp *reverseProxy) serveFromCache(s *scope, srw *statResponseWriter, req *h
err = crw.Rollback()
} else {
err = crw.Commit()
since := float64(time.Since(timeStart).Seconds())
proxiedResponseDuration.With(s.labels).Observe(since)
}

if err != nil {
Expand Down

0 comments on commit 7360cea

Please sign in to comment.