INNER CODE UNIT · Rust
on_connection_handler_event
qaul/qaul.net · rust/libp2p_modules/qaul_info/src/lib.rs:112
fn on_connection_handler_event(
&mut self,
peer_id: libp2p::PeerId,
_connection_id: libp2p::swarm::ConnectionId,
event: libp2p::swarm::THandlerOutEvent<Self>,
) {
// We received one of the following event notification
let qaul_info_data = match event {
// only process a received message
Ok(InnerMessage::Received(event)) => event,
// ignore the sent event
Ok(InnerMessage::Sent) => return,
Err(err) => {
log::trace!("qaul_info_data failed: {}", err);
return;
}
};