Skip to content

Commit

Permalink
optizime status
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Apr 12, 2018
1 parent 0dc3725 commit 6651fae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/middlewares/countRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ function countRequest () {
global.requests.hosts = fetchRequests[1] || {}
}
const host = String(ctx.request.host)
cache.set('requests', global.requests.all + 1)
global.requests.all++
cache.set('requests', global.requests.all)
.catch(err => {
winston.error(err)
})
Expand Down

0 comments on commit 6651fae

Please sign in to comment.