mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
Fix legacy substream fallback not working (#6826)
* Fix legacy substream fallback not working * Make it nicer
This commit is contained in:
@@ -600,15 +600,10 @@ impl ProtocolsHandler for NotifsHandler {
|
||||
message
|
||||
} => {
|
||||
for (handler, _) in &mut self.out_handlers {
|
||||
if handler.protocol_name() != &protocol_name[..] {
|
||||
continue;
|
||||
}
|
||||
|
||||
if handler.is_open() {
|
||||
if handler.protocol_name() == &protocol_name[..] && handler.is_open() {
|
||||
handler.send_or_discard(message);
|
||||
continue 'poll_notifs_sink;
|
||||
}
|
||||
|
||||
continue 'poll_notifs_sink;
|
||||
}
|
||||
|
||||
self.legacy.inject_event(LegacyProtoHandlerIn::SendCustomMessage {
|
||||
|
||||
Reference in New Issue
Block a user