diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetHeadersFromPeerByNumberTask.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetHeadersFromPeerByNumberTask.java index ce71ecd5b44..3f6e153df37 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetHeadersFromPeerByNumberTask.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetHeadersFromPeerByNumberTask.java @@ -81,7 +81,7 @@ protected PendingPeerRequest sendRequest() { .setMessage("Requesting {} headers (blockNumber {}) from peer {}.") .addArgument(count) .addArgument(blockNumber) - .addArgument(peer.getShortNodeId()) + .addArgument(peer::getShortNodeId) .log(); return peer.getHeadersByNumber(blockNumber, count, skip, reverse); }, diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetNodeDataFromPeerTask.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetNodeDataFromPeerTask.java index 9c888b73161..d6b0de35069 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetNodeDataFromPeerTask.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/GetNodeDataFromPeerTask.java @@ -68,8 +68,8 @@ protected PendingPeerRequest sendRequest() { peer -> { LOG.atTrace() .setMessage("Requesting {} node data entries from peer {}...") - .addArgument(hashes.size()) - .addArgument(peer.getShortNodeId()) + .addArgument(hashes::size) + .addArgument(peer::getShortNodeId) .log(); return peer.getNodeData(hashes); },