@@ -18,7 +18,7 @@ use strum_macros::Display;
18
18
pub use traits:: * ;
19
19
pub use write:: Batch ;
20
20
21
- use futures01:: { Async , Stream } ;
21
+ use futures01:: Stream ;
22
22
use serde:: { Deserialize , Serialize } ;
23
23
use std:: collections:: btree_map:: Entry ;
24
24
use std:: collections:: { BTreeMap , BTreeSet , HashSet } ;
@@ -633,37 +633,8 @@ impl PartialEq for StoreEvent {
633
633
}
634
634
}
635
635
636
- /// A `StoreEventStream` produces the `StoreEvents`. Various filters can be applied
637
- /// to it to reduce which and how many events are delivered by the stream.
638
- pub struct StoreEventStream < S > {
639
- source : S ,
640
- }
641
-
642
636
/// A boxed `StoreEventStream`
643
- pub type StoreEventStreamBox =
644
- StoreEventStream < Box < dyn Stream < Item = Arc < StoreEvent > , Error = ( ) > + Send > > ;
645
-
646
- impl < S > Stream for StoreEventStream < S >
647
- where
648
- S : Stream < Item = Arc < StoreEvent > , Error = ( ) > + Send ,
649
- {
650
- type Item = Arc < StoreEvent > ;
651
- type Error = ( ) ;
652
-
653
- fn poll ( & mut self ) -> Result < Async < Option < Self :: Item > > , Self :: Error > {
654
- self . source . poll ( )
655
- }
656
- }
657
-
658
- impl < S > StoreEventStream < S >
659
- where
660
- S : Stream < Item = Arc < StoreEvent > , Error = ( ) > + Send + ' static ,
661
- {
662
- // Create a new `StoreEventStream` from another such stream
663
- pub fn new ( source : S ) -> Self {
664
- StoreEventStream { source }
665
- }
666
- }
637
+ pub type StoreEventStreamBox = Box < dyn Stream < Item = Arc < StoreEvent > , Error = ( ) > + Send > ;
667
638
668
639
/// An entity operation that can be transacted into the store.
669
640
#[ derive( Clone , Debug , PartialEq ) ]
0 commit comments