Reduce wire ID length (we're not worried about collisions really)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jack Hadrill 2021-01-06 15:34:47 +00:00
parent 7312b279ea
commit 02f789f90d
1 changed files with 1 additions and 1 deletions

View File

@ -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),