WIP on factor stream kind
This commit is contained in:
@@ -91,7 +91,6 @@ pub async fn get_binned(
|
||||
None
|
||||
}
|
||||
StreamItem::DataItem(frame) => {
|
||||
type _ExpectedType2 = disk::binned::BinnedBytesForHttpStreamFrame;
|
||||
type ExpectedType = Result<StreamItem<BinnedScalarStreamItem>, Error>;
|
||||
let type_id_exp = <ExpectedType as FrameType>::FRAME_TYPE_ID;
|
||||
if frame.tyid() != type_id_exp {
|
||||
|
||||
@@ -2,6 +2,7 @@ use crate::spawn_test_hosts;
|
||||
use bytes::BytesMut;
|
||||
use chrono::{DateTime, Utc};
|
||||
use disk::agg::streams::StreamItem;
|
||||
use disk::binned::BinnedScalarStreamItem;
|
||||
use disk::frame::inmem::InMemoryFrameAsyncReadStream;
|
||||
use disk::streamlog::Streamlog;
|
||||
use err::Error;
|
||||
@@ -161,7 +162,7 @@ where
|
||||
None
|
||||
}
|
||||
StreamItem::DataItem(frame) => {
|
||||
type ExpectedType = disk::binned::BinnedBytesForHttpStreamFrame;
|
||||
type ExpectedType = Result<StreamItem<BinnedScalarStreamItem>, Error>;
|
||||
match bincode::deserialize::<ExpectedType>(frame.buf()) {
|
||||
Ok(item) => match item {
|
||||
Ok(item) => match item {
|
||||
|
||||
Reference in New Issue
Block a user