Skip to content

Commit

Permalink
NetDB: Limit number of DSRM entries to follow
Browse files Browse the repository at this point in the history
for an exploratory reply
  • Loading branch information
zzzi2p committed May 1, 2024
1 parent 332411c commit c3730e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public SearchReplyJob(RouterContext enclosingContext, SearchJob job, DatabaseSea
public String getName() { return "Process Reply for Kademlia Search"; }

public void runJob() {
int count = _msg.getNumReplies();
int count = Math.min(_msg.getNumReplies(), 2 * SingleLookupJob.MAX_TO_FOLLOW);
for (int i = 0; i < count; i++) {
processPeer(i);
}
Expand Down

0 comments on commit c3730e8

Please sign in to comment.