mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Transition the transaction-pool to new futures (#3394)
* Transition the transaction-pool to new futures * Fix tests * Fix tests again?!
This commit is contained in:
committed by
Gavin Wood
parent
9d6118279e
commit
11da397db8
@@ -18,7 +18,7 @@
|
||||
|
||||
use futures::{
|
||||
Stream,
|
||||
sync::mpsc,
|
||||
channel::mpsc,
|
||||
};
|
||||
use serde::{Serialize, Deserialize};
|
||||
|
||||
@@ -60,9 +60,8 @@ impl<H, H2> Watcher<H, H2> {
|
||||
/// Pipe the notifications to given sink.
|
||||
///
|
||||
/// Make sure to drive the future to completion.
|
||||
pub fn into_stream(self) -> impl Stream<Item=Status<H, H2>, Error=()> {
|
||||
// we can safely ignore the error here, `UnboundedReceiver` never fails.
|
||||
self.receiver.map_err(|_| ())
|
||||
pub fn into_stream(self) -> impl Stream<Item=Status<H, H2>> {
|
||||
self.receiver
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user