Skip to content

Commit

Permalink
dap_version not dap_versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed Aug 17, 2023
1 parent 73439b3 commit e63e4b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aggregator_api/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(crate) enum AggregatorRole {

#[derive(Serialize, PartialEq, Eq, Debug)]
pub(crate) struct AggregatorApiConfig {
pub dap_versions: &'static [&'static str],
pub dap_version: &'static str,
pub dap_url: Url,
pub role: AggregatorRole,
pub vdafs: Vec<SupportedVdaf>,
Expand Down
2 changes: 1 addition & 1 deletion aggregator_api/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub(super) async fn get_config(
State(config): State<Arc<Config>>,
) -> Json<AggregatorApiConfig> {
Json(AggregatorApiConfig {
dap_versions: ["DAP-05"].as_slice(),
dap_version: "DAP-05",
dap_url: config.public_dap_url.clone(),
role: AggregatorRole::Either,
vdafs: vec![
Expand Down
2 changes: 1 addition & 1 deletion aggregator_api/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async fn get_config() {
.await,
Status::Ok,
concat!(
r#"{"dap_versions":["DAP-05"],"dap_url":"https://dap.url/","role":"Either","vdafs":"#,
r#"{"dap_version":"DAP-05","dap_url":"https://dap.url/","role":"Either","vdafs":"#,
r#"["Prio3Count","Prio3Sum","Prio3Histogram","Prio3CountVec","Prio3SumVec"],"#,
r#""query_types":["TimeInterval","FixedSize"]}"#
)
Expand Down

0 comments on commit e63e4b8

Please sign in to comment.