mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +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 {
|
||||
sink.send_sync_notification(protocol_name, message);
|
||||
} else {
|
||||
log::error!(
|
||||
target: "sub-libp2p",
|
||||
"Attempted to send notification on unknown protocol: {:?}",
|
||||
engine_id,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user