From e067dbe13bb99cbcc8fbb6d2191a74a81e7be463 Mon Sep 17 00:00:00 2001 From: Filippo Costa Date: Tue, 9 Jan 2024 15:04:33 +0100 Subject: [PATCH] Minor fixes --- full-node/sov-sequencer/tests/tx_status_subscription_rpc.rs | 5 +---- rollup-interface/src/node/services/da.rs | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/full-node/sov-sequencer/tests/tx_status_subscription_rpc.rs b/full-node/sov-sequencer/tests/tx_status_subscription_rpc.rs index 50622e30a..285c16816 100644 --- a/full-node/sov-sequencer/tests/tx_status_subscription_rpc.rs +++ b/full-node/sov-sequencer/tests/tx_status_subscription_rpc.rs @@ -93,10 +93,7 @@ async fn subscribe() { client.send_transactions(txs, None).await.unwrap(); let tx_status = subscription.next().await.unwrap().unwrap(); - assert!(matches!( - tx_status, - TxStatus::Submitted | TxStatus::Published { .. } - )); + assert!(matches!(tx_status, TxStatus::Submitted)); let tx_status = subscription.next().await.unwrap().unwrap(); assert!(matches!(tx_status, TxStatus::Published { .. })); diff --git a/rollup-interface/src/node/services/da.rs b/rollup-interface/src/node/services/da.rs index 5e8880daf..723017e15 100644 --- a/rollup-interface/src/node/services/da.rs +++ b/rollup-interface/src/node/services/da.rs @@ -31,9 +31,8 @@ pub trait DaService: Send + Sync + 'static { >; /// Type that allow to consume [`futures::Stream`] of BlockHeaders. - type HeaderStream: futures::Stream< - Item = Result<::BlockHeader, Self::Error>, - >; + type HeaderStream: futures::Stream::BlockHeader, Self::Error>> + + Send; /// A transaction ID, used to identify the transaction in the DA layer. type TransactionId: PartialEq + Eq + PartialOrd + Ord + core::hash::Hash;