mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 05:11:09 +00:00
Print an error if an unregistered notifications protocol is used (#7457)
* Print an error if an nregistered notifications protocol is used * Print an error if an nregistered notifications protocol is used * Update client/network/src/service.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -661,6 +661,11 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
|
|||||||
if let Some(protocol_name) = protocol_name {
|
if let Some(protocol_name) = protocol_name {
|
||||||
sink.send_sync_notification(protocol_name, message);
|
sink.send_sync_notification(protocol_name, message);
|
||||||
} else {
|
} else {
|
||||||
|
log::error!(
|
||||||
|
target: "sub-libp2p",
|
||||||
|
"Attempted to send notification on unknown protocol: {:?}",
|
||||||
|
engine_id,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user