mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
depend-o-pocalipse (#9450)
Remove unneeded dependencies and dev-dependencies. Made self_destruct test not dependent on wasm bin size. Updated code related to deprecated warning on tracing-subscriber `scope()` ( See https://github.com/tokio-rs/tracing/issues/1429 )
This commit is contained in:
@@ -263,8 +263,9 @@ impl<B: BlockT> Future for GossipEngine<B> {
|
||||
for sink in sinks {
|
||||
match sink.start_send(notification.clone()) {
|
||||
Ok(()) => {},
|
||||
Err(e) if e.is_full() =>
|
||||
unreachable!("Previously ensured that all sinks are ready; qed."),
|
||||
Err(e) if e.is_full() => {
|
||||
unreachable!("Previously ensured that all sinks are ready; qed.")
|
||||
},
|
||||
// Receiver got dropped. Will be removed in next iteration (See (1)).
|
||||
Err(_) => {},
|
||||
}
|
||||
@@ -623,8 +624,9 @@ mod tests {
|
||||
.and_modify(|e| *e += 1)
|
||||
.or_insert(1);
|
||||
},
|
||||
Poll::Ready(None) =>
|
||||
unreachable!("Sender side of channel is never dropped"),
|
||||
Poll::Ready(None) => {
|
||||
unreachable!("Sender side of channel is never dropped")
|
||||
},
|
||||
Poll::Pending => {},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,14 +127,15 @@ where
|
||||
} else {
|
||||
MessageIntent::Broadcast
|
||||
},
|
||||
MessageIntent::PeriodicRebroadcast =>
|
||||
MessageIntent::PeriodicRebroadcast => {
|
||||
if peer.known_messages.contains(&message_hash) {
|
||||
MessageIntent::PeriodicRebroadcast
|
||||
} else {
|
||||
// peer doesn't know message, so the logic should treat it as an
|
||||
// initial broadcast.
|
||||
MessageIntent::Broadcast
|
||||
},
|
||||
}
|
||||
},
|
||||
other => other,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user