Towards filling in more missing pieces

This commit is contained in:
Dominik Werder
2021-05-04 18:24:30 +02:00
parent bf08893a98
commit be36dcce89
6 changed files with 73 additions and 66 deletions

View File

@@ -1,6 +1,7 @@
use crate::spawn_test_hosts;
use bytes::BytesMut;
use chrono::{DateTime, Utc};
use disk::agg::MinMaxAvgScalarBinBatchStreamItem;
use disk::frame::inmem::InMemoryFrameAsyncReadStream;
use err::Error;
use futures_util::StreamExt;
@@ -162,10 +163,11 @@ where
.fold(Ok(BinnedResponse::new()), |a, k| {
let g = match a {
Ok(mut a) => match k {
Ok(k) => {
Ok(MinMaxAvgScalarBinBatchStreamItem::Values(k)) => {
a.bin_count += k.ts1s.len();
Ok(a)
}
Ok(_) => Ok(a),
Err(e) => Err(e),
},
Err(e) => Err(e),