Skip to content

Commit

Permalink
Merge pull request #16 from Obvious/dpup-serverrequests
Browse files Browse the repository at this point in the history
HTTPPool increments Group.Stats.ServerRequests
  • Loading branch information
bradfitz committed Oct 30, 2013
2 parents 5fd3de0 + bdcbf83 commit d781998
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d781998

Please sign in to comment.