Skip to content

Commit

Permalink
内存 DISTINCT
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 19, 2024
1 parent 3c72737 commit a6d91f1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void cronUntrustedIPAddresses() throws InterruptedException {
Duration.ofMinutes(30)
)
.stream()
.distinct()
.map(IPUtil::toString)
.collect(Collectors.toList()))
.stream().map(IPUtil::toIPAddress)
Expand Down

0 comments on commit a6d91f1

Please sign in to comment.