It compiles

This commit is contained in:
Dominik Werder
2021-05-20 20:04:21 +02:00
parent 49af7ce561
commit 30be7d1c44
25 changed files with 424 additions and 663 deletions

View File

@@ -1,3 +1,4 @@
use crate::agg::streams::StreamItem;
use crate::dataopen::{open_files, OpenedFile};
use crate::eventchunker::{EventChunker, EventChunkerConf, EventChunkerItem};
use crate::file_content_stream;
@@ -55,9 +56,9 @@ impl EventBlobsComplete {
}
impl Stream for EventBlobsComplete {
type Item = Result<EventChunkerItem, Error>;
type Item = Result<StreamItem<EventChunkerItem>, Error>;
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>> {
use Poll::*;
'outer: loop {
break if self.completed {
@@ -99,7 +100,7 @@ impl Stream for EventBlobsComplete {
}
None => {}
}
Ready(Some(Ok(EventChunkerItem::Log(item))))
Ready(Some(Ok(StreamItem::Log(item))))
}
Err(e) => {
self.errored = true;
@@ -118,7 +119,7 @@ impl Stream for EventBlobsComplete {
self.node_ix
),
);
Ready(Some(Ok(EventChunkerItem::Log(item))))
Ready(Some(Ok(StreamItem::Log(item))))
}
Pending => Pending,
},