Skip to content

Commit

Permalink
Add getPeerLogMetadata to ReqResp (#5069)
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion authored Jan 27, 2023
1 parent b13831f commit 222958e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/beacon-node/src/network/reqresp/ReqRespBeaconNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export class ReqRespBeaconNode extends ReqResp implements IReqRespBeaconNode {
peerRpcScores.applyAction(peerId, PeerAction.Fatal, "rate_limit_rpc");
metrics?.reqResp.rateLimitErrors.inc({method});
},
getPeerLogMetadata(peerId) {
return peersData.getPeerKind(peerId);
},
}
);

Expand Down

0 comments on commit 222958e

Please sign in to comment.