From 02f789f90df292160a68340964708222b8a41df4 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Wed, 6 Jan 2021 15:34:47 +0000 Subject: [PATCH] Reduce wire ID length (we're not worried about collisions really) --- src/helpers/wire-statistics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/wire-statistics.js b/src/helpers/wire-statistics.js index ee246fe..f3acd4f 100644 --- a/src/helpers/wire-statistics.js +++ b/src/helpers/wire-statistics.js @@ -3,7 +3,7 @@ import prettyBytes from 'pretty-bytes' const generateWireStatistics = (wires) => { return wires.map(wire => ({ - peerId: sha1(wire.peerId).toString().substring(0, 100), + peerId: sha1(wire.peerId).toString().substring(0, 5), remoteAddress: wire.remoteAddress, uploadSpeed: prettyBytes(wire.uploadSpeed()) + 'ps', uploaded: prettyBytes(wire.uploaded),