HTTPPool increments Group.Stats.ServerRequests

This commit is contained in:
Dan Pupius 2013-10-16 10:51:16 -07:00
parent 5fd3de064f
commit bdcbf83d9e

View File

@ -130,6 +130,8 @@ func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if p.Context != nil {
ctx = p.Context(r)
}
group.Stats.ServerRequests.Add(1)
var value []byte
err = group.Get(ctx, key, AllocatingByteSliceSink(&value))
if err != nil {