WIP (write message)

This commit is contained in:
Dominik Werder
2023-12-07 16:33:52 +01:00
parent f946d1b6d9
commit 90fe23b676
28 changed files with 365 additions and 205 deletions

View File

@@ -88,7 +88,7 @@ async fn agg_x_dim_0_inner() {
true,
// TODO
32,
netpod::ReqCtx::new("req-000"),
netpod::ReqCtx::new("req-000").into(),
);
let _ = fut1;
// TODO add the binning and expectation and await the result.
@@ -150,7 +150,7 @@ async fn agg_x_dim_1_inner() {
true,
// TODO
32,
netpod::ReqCtx::new("req-000"),
netpod::ReqCtx::new("req-000").into(),
);
let _ = fut1;
// TODO add the binning and expectation and await the result.

View File

@@ -7,6 +7,7 @@ use items_2::eventfull::EventFull;
use items_2::merger::Merger;
use netpod::log::*;
use netpod::Cluster;
use netpod::ReqCtx;
use query::api4::events::EventsSubQuery;
use std::future::Future;
use std::pin::Pin;
@@ -26,11 +27,11 @@ pub struct MergedBlobsFromRemotes {
}
impl MergedBlobsFromRemotes {
pub fn new(subq: EventsSubQuery, cluster: Cluster) -> Self {
pub fn new(subq: EventsSubQuery, ctx: &ReqCtx, cluster: Cluster) -> Self {
debug!("MergedBlobsFromRemotes::new subq {:?}", subq);
let mut tcp_establish_futs = Vec::new();
for node in &cluster.nodes {
let f = x_processed_event_blobs_stream_from_node(subq.clone(), node.clone());
let f = x_processed_event_blobs_stream_from_node(subq.clone(), node.clone(), ctx.clone());
let f: T002<EventFull> = Box::pin(f);
tcp_establish_futs.push(f);
}