7311: Reword trace log in DefaultPeerSelector

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
pull/7628/head
Matilda Clerke 2 months ago
parent 6de3fb366a
commit da9cd438ae
  1. 2
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/peertask/DefaultPeerSelector.java

@ -46,7 +46,7 @@ public class DefaultPeerSelector implements PeerSelector {
*/ */
@Override @Override
public EthPeer getPeer(final Predicate<EthPeer> filter) throws NoAvailablePeerException { public EthPeer getPeer(final Predicate<EthPeer> filter) throws NoAvailablePeerException {
LOG.trace("Getting peer from pool of {} peers", ethPeersByPeerId.size()); LOG.trace("Finding peer from pool of {} peers", ethPeersByPeerId.size());
return ethPeersByPeerId.values().stream() return ethPeersByPeerId.values().stream()
.filter(filter) .filter(filter)
.max(Comparator.naturalOrder()) .max(Comparator.naturalOrder())

Loading…
Cancel
Save