Skip to content

Commit

Permalink
squash all of #1234
Browse files Browse the repository at this point in the history
  • Loading branch information
branlwyd authored and tgeoghegan committed Aug 26, 2023
1 parent 8a40de8 commit e226dd7
Show file tree
Hide file tree
Showing 23 changed files with 3,480 additions and 2,010 deletions.
34 changes: 32 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ janus_messages = { version = "0.5", path = "messages" }
k8s-openapi = { version = "0.18.0", features = ["v1_24"] } # keep this version in sync with what is referenced by the indirect dependency via `kube`
kube = { version = "0.82.2", default-features = false, features = ["client", "rustls-tls"] }
opentelemetry = { version = "0.20", features = ["metrics"] }
prio = { version = "0.14.1", features = ["multithreaded"] }
# TODO(timg): go back to a released version of prio
#prio = { version = "0.14.1", features = ["multithreaded"] }
prio = { git = "https://github.com/divviup/libprio-rs", branch = "timg/ping-pong-topology", features = ["multithreaded", "experimental"] }
serde = { version = "1.0.185", features = ["derive"] }
serde_json = "1.0.105"
serde_test = "1.0.175"
Expand Down
318 changes: 190 additions & 128 deletions aggregator/src/aggregator.rs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions aggregator/src/aggregator/accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::{
/// Accumulates output shares in memory and eventually flushes accumulations to a datastore. We
/// accumulate output shares into a [`HashMap`] mapping the batch identifier at which the batch
/// interval begins to the accumulated aggregate share, report count and checksum.
#[derive(Derivative)]
#[derive(Clone, Derivative)]
#[derivative(Debug)]
pub struct Accumulator<
const SEED_SIZE: usize,
Expand All @@ -40,7 +40,7 @@ pub struct Accumulator<
aggregations: HashMap<Q::BatchIdentifier, BatchData<SEED_SIZE, Q, A>>,
}

#[derive(Debug)]
#[derive(Clone, Debug)]
struct BatchData<
const SEED_SIZE: usize,
Q: AccumulableQueryType,
Expand Down
Loading

0 comments on commit e226dd7

Please sign in to comment.