mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 13:24:39 +00:00
Suppress RPC Error disconnect log (#5802)
* Suppress RPC Error disconnect log
This commit is contained in:
@@ -1383,14 +1383,21 @@ impl<AppReqId: ReqId, E: EthSpec> Network<AppReqId, E> {
|
|||||||
// Silencing this event breaks the API contract with RPC where every request ends with
|
// Silencing this event breaks the API contract with RPC where every request ends with
|
||||||
// - A stream termination event, or
|
// - A stream termination event, or
|
||||||
// - An RPCError event
|
// - An RPCError event
|
||||||
if !matches!(event.event, HandlerEvent::Err(HandlerErr::Outbound { .. })) {
|
return if let HandlerEvent::Err(HandlerErr::Outbound {
|
||||||
|
id: RequestId::Application(id),
|
||||||
|
error,
|
||||||
|
..
|
||||||
|
}) = event.event
|
||||||
|
{
|
||||||
|
Some(NetworkEvent::RPCFailed { peer_id, id, error })
|
||||||
|
} else {
|
||||||
debug!(
|
debug!(
|
||||||
self.log,
|
self.log,
|
||||||
"Ignoring rpc message of disconnecting peer";
|
"Ignoring rpc message of disconnecting peer";
|
||||||
event
|
event
|
||||||
);
|
);
|
||||||
return None;
|
None
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
let handler_id = event.conn_id;
|
let handler_id = event.conn_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user