Skip to content

Commit

Permalink
Change access level for checkMaxConnections to be tested
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbileck committed Nov 12, 2019
1 parent 6b22690 commit 22e93d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion p2p/src/main/java/bisq/network/p2p/peers/PeerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

import javax.inject.Inject;

import com.google.common.annotations.VisibleForTesting;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
Expand Down Expand Up @@ -300,7 +302,8 @@ private void doHouseKeeping() {
}
}

private boolean checkMaxConnections() {
@VisibleForTesting
boolean checkMaxConnections() {
Set<Connection> allConnections = new HashSet<>(networkNode.getAllConnections());
int size = allConnections.size();
log.info("We have {} connections open. Our limit is {}", size, maxConnections);
Expand Down

0 comments on commit 22e93d9

Please sign in to comment.