Merge pull request #16 from Obvious/dpup-serverrequests

HTTPPool increments Group.Stats.ServerRequests
This commit is contained in:
Brad Fitzpatrick 2013-10-30 09:55:26 -07:00
commit d781998583

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 {