Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Nov 6, 2024
1 parent 37d49a1 commit efd1507
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private void handlePeerTrends(Context ctx) throws Exception {
.le("banAt", timeQueryModel.endAt());
if (downloader != null && !downloader.isBlank()) {
queryConnected.and().eq("downloader", new SelectArg(downloader));
queryBanned.and().eq("downloader", new SelectArg( downloader));
queryBanned.and().eq("downloader", new SelectArg(downloader));
}
try (var it = queryConnected.iterator()) {
while (it.hasNext()) {
Expand Down Expand Up @@ -185,6 +185,7 @@ private void handleGeoIP(Context ctx) throws Exception {
public boolean hasNext() {
return bannedOnly ? itBanned.hasNext() : itConnected.hasNext();
}

@Override
public String next() {
return bannedOnly ? itBanned.next().getIp() : itConnected.next().getAddress();
Expand Down

0 comments on commit efd1507

Please sign in to comment.