Skip to content

Commit 7360cea

Browse files
committed
Removed duplicate counting for proxied response duration in serverFromCache, since it is already counted in the proxyRequest
1 parent ab00038 commit 7360cea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

proxy.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ func (rp *reverseProxy) serveFromCache(s *scope, srw *statResponseWriter, req *h
246246
err = crw.Rollback()
247247
} else {
248248
err = crw.Commit()
249-
since := float64(time.Since(timeStart).Seconds())
250-
proxiedResponseDuration.With(s.labels).Observe(since)
251249
}
252250

253251
if err != nil {

0 commit comments

Comments
 (0)