mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 09:51:02 +00:00
[ci] Update ci image with rust 1.77 and 2024-04-10 (#4077)
cc https://github.com/paritytech/ci_cd/issues/974 --------- Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
committed by
GitHub
parent
b6fab8046e
commit
76719da221
@@ -51,10 +51,8 @@ use std::{
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) enum Event {
|
||||
EventStream(TracingUnboundedSender<NetworkEvent>),
|
||||
WriteNotification(PeerId, Vec<u8>),
|
||||
Report(PeerId, ReputationChange),
|
||||
Announce(Hash),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
@@ -146,15 +144,13 @@ impl NetworkEventStream for TestNetwork {
|
||||
&self,
|
||||
_name: &'static str,
|
||||
) -> Pin<Box<dyn Stream<Item = NetworkEvent> + Send>> {
|
||||
let (tx, rx) = tracing_unbounded("test", 100_000);
|
||||
let _ = self.sender.unbounded_send(Event::EventStream(tx));
|
||||
Box::pin(rx)
|
||||
futures::stream::pending().boxed()
|
||||
}
|
||||
}
|
||||
|
||||
impl NetworkBlock<Hash, NumberFor<Block>> for TestNetwork {
|
||||
fn announce_block(&self, hash: Hash, _data: Option<Vec<u8>>) {
|
||||
let _ = self.sender.unbounded_send(Event::Announce(hash));
|
||||
fn announce_block(&self, _: Hash, _data: Option<Vec<u8>>) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
fn new_best_block_imported(&self, _hash: Hash, _number: NumberFor<Block>) {
|
||||
|
||||
Reference in New Issue
Block a user