Skip to content

Commit

Permalink
HTTPPool increments Group.Stats.ServerRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Pupius committed Oct 16, 2013
1 parent 5fd3de0 commit bdcbf83
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 bdcbf83

Please sign in to comment.