mirror of
https://github.com/mailgun/groupcache.git
synced 2024-10-02 21:02:08 +00:00
HTTPPool increments Group.Stats.ServerRequests
This commit is contained in:
parent
5fd3de064f
commit
bdcbf83d9e
2
http.go
2
http.go
@ -130,6 +130,8 @@ func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
if p.Context != nil {
|
if p.Context != nil {
|
||||||
ctx = p.Context(r)
|
ctx = p.Context(r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group.Stats.ServerRequests.Add(1)
|
||||||
var value []byte
|
var value []byte
|
||||||
err = group.Get(ctx, key, AllocatingByteSliceSink(&value))
|
err = group.Get(ctx, key, AllocatingByteSliceSink(&value))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user