feat: remove hot ip in debug info

This commit is contained in:
DIYgod
2021-01-21 11:57:16 +08:00
parent a0dd6756da
commit 6506c39239
4 changed files with 0 additions and 20 deletions

View File

@@ -4,11 +4,6 @@ module.exports = async (ctx, next) => {
}
ctx.debug.paths[ctx.request.path]++;
const ip = ctx.ips[0] || ctx.ip;
if (!ctx.debug.ips[ip]) {
ctx.debug.ips[ip] = 0;
}
ctx.debug.ips[ip]++;
ctx.debug.request++;
await next();