Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Marta Mularczyk committed Mar 14, 2024
1 parent fb04d49 commit 86dc047
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mls-rs/src/client_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ impl<C: IntoConfig> ClientBuilder<C> {
ClientBuilder(c)
}

#[cfg(test)]
#[cfg(any(test, feature = "test_util"))]
pub(crate) fn key_package_not_before(
self,
key_package_not_before: u64,
Expand Down Expand Up @@ -874,7 +874,7 @@ pub(crate) struct Settings {
pub(crate) key_package_extensions: ExtensionList,
pub(crate) leaf_node_extensions: ExtensionList,
pub(crate) lifetime_in_s: u64,
#[cfg(test)]
#[cfg(any(test, feature = "test_util"))]
pub(crate) key_package_not_before: Option<u64>,
}

Expand All @@ -887,7 +887,7 @@ impl Default for Settings {
leaf_node_extensions: Default::default(),
lifetime_in_s: 365 * 24 * 3600,
custom_proposal_types: Default::default(),
#[cfg(test)]
#[cfg(any(test, feature = "test_util"))]
key_package_not_before: None,
}
}
Expand All @@ -910,7 +910,7 @@ pub(crate) fn recreate_config<T: ClientConfig>(
let l = c.lifetime();
l.not_after - l.not_before
},
#[cfg(test)]
#[cfg(any(test, feature = "test_util"))]
key_package_not_before: None,
},
key_package_repo: c.key_package_repo(),
Expand Down
2 changes: 2 additions & 0 deletions mls-rs/src/test_utils/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub async fn join_group(cs: CipherSuite, group_info: MlsMessage) -> GroupStates<
None,
false,
&MlsCryptoProvider::new(),
None,
);

let mut sender = client.commit_external(group_info).await.unwrap().0;
Expand All @@ -124,6 +125,7 @@ pub async fn join_group(cs: CipherSuite, group_info: MlsMessage) -> GroupStates<
None,
false,
&MlsCryptoProvider::new(),
None,
);

let group_info = sender
Expand Down
1 change: 1 addition & 0 deletions mls-rs/tests/client_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async fn generate_client(
None,
encrypt_controls,
&TestCryptoProvider::default(),
None,
)
.await
}
Expand Down

0 comments on commit 86dc047

Please sign in to comment.