Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 authored Nov 30, 2023
1 parent a750b66 commit f278102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit f278102

Please sign in to comment.