Skip to content

Commit

Permalink
这俩实际上毫无关联
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 16, 2025
1 parent 7ede0b5 commit 06b6098
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ private List<BtnPeerHistory> generatePing() {
Pageable pageable = new Pageable(0, 10000); // 再多的话,担心爆内存
return btnNetwork.getPeerRecordDao().getPendingSubmitPeerRecords(pageable,
new Timestamp(lastSubmitAt)).getResults().stream()
.filter(r -> !r.getDownloader().equals("<UNBAN UPDATE>"))
.map(BtnPeerHistory::from).collect(Collectors.toList());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public void onPeerUnBan(PeerUnbanEvent event) {
if (lastRecordedProgress == null) lastRecordedProgress = new CopyOnWriteArrayList<>();
ClientTask clientTask = lastRecordedProgress.stream().filter(task -> task.getPeerIp().equals(peerIpString)).findFirst().orElse(null);
if (clientTask != null) {
clientTask.setDownloader("<UNBAN UPDATE>");
clientTask.setBanDelayWindowEndAt(0L);
clientTask.setLastReportProgress(0);
clientTask.setLastReportUploaded(0);
Expand Down

0 comments on commit 06b6098

Please sign in to comment.