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

@@ -48,13 +48,6 @@ module.exports = async (ctx) => {
});
}
const ips = Object.keys(ctx.debug.ips).sort((a, b) => ctx.debug.ips[b] - ctx.debug.ips[a]);
const hotIPs = ips.slice(0, 50);
let hotIPsValue = '';
hotIPs.forEach((item) => {
hotIPsValue += `${ctx.debug.ips[item]} ${item}<br>`;
});
let showDebug;
if (!config.debugInfo || config.debugInfo === 'false') {
showDebug = false;
@@ -115,10 +108,6 @@ module.exports = async (ctx) => {
name: 'Hot Paths',
value: hotPathsValue,
},
{
name: 'Hot IP',
value: hotIPsValue,
},
{
name: 'Hot Error Routes',
value: hotErrorRoutesValue,