@@ -18,7 +18,7 @@ use strum_macros::Display;
1818pub use traits:: * ;
1919pub use write:: Batch ;
2020
21- use futures01:: { Async , Stream } ;
21+ use futures01:: Stream ;
2222use serde:: { Deserialize , Serialize } ;
2323use std:: collections:: btree_map:: Entry ;
2424use std:: collections:: { BTreeMap , BTreeSet , HashSet } ;
@@ -633,37 +633,8 @@ impl PartialEq for StoreEvent {
633633 }
634634}
635635
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-
642636/// 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 > ;
667638
668639/// An entity operation that can be transacted into the store.
669640#[ derive( Clone , Debug , PartialEq ) ]
0 commit comments