Skip to content

Commit

Permalink
接着修
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 31, 2024
1 parent 1ddf6dc commit e0cf0e2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ public long handlePeerHistories(InetAddress inetAddress, UserApplication userApp
var peer = it.next();
var peerId = ByteUtil.filterUTF8(PeerUtil.cutPeerId(peer.getPeerId()));
var peerClientName = ByteUtil.filterUTF8(PeerUtil.cutClientName(peer.getClientName()));
if (peerClientName.length() > 250) {
// get the first 64 chars and append "..." and append last 64 chars
peerClientName = peerClientName.substring(0, 64) + "[...]" + peerClientName.substring(peerClientName.length() - 64);
}
peerHistoryList.add(PeerHistory.builder()
.insertTime(now)
.populateTime(TimeUtil.toUTC(ping.getPopulateTime()))
Expand Down

0 comments on commit e0cf0e2

Please sign in to comment.