Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to not show 'peersCountPerInfoHash' ? #78

Open
stevenking888 opened this issue Jul 9, 2024 · 1 comment
Open

Is it possible to not show 'peersCountPerInfoHash' ? #78

stevenking888 opened this issue Jul 9, 2024 · 1 comment

Comments

@stevenking888
Copy link

Hello,

After I update to the latest version I found that stats.json has addition info peersCountPerInfoHash when connection is hight it's seem to slow down stats.json. Is it possible to disable it for showing ?

Regards,
Steven

@mrlika
Copy link
Member

mrlika commented Jul 10, 2024

It is not possible to configure stats.json, but it can be disabled by commenting on two lines of code in run-uws-tracker.ts:

        // const infoHashHex = Buffer.from(infoHash, "binary").toString("hex");
        // peersCountPerInfoHash[infoHashHex] = swarm.peers.length;

const infoHashHex = Buffer.from(infoHash, "binary").toString("hex");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants