Skip to content

Commit 4f8ed01

Browse files
author
Ellen Arteca
committed
flag
1 parent 6f53798 commit 4f8ed01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mls-rs/src/group/external_commit.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pub struct ExternalCommitBuilder<C: ClientConfig> {
5555
config: C,
5656
tree_data: Option<ExportedTree<'static>>,
5757
to_remove: Option<u32>,
58+
#[cfg(feature = "server_remove_proposal")]
5859
to_server_remove: Vec<u32>,
5960
#[cfg(feature = "psk")]
6061
external_psks: Vec<ExternalPskId>,
@@ -74,6 +75,7 @@ impl<C: ClientConfig> ExternalCommitBuilder<C> {
7475
Self {
7576
tree_data: None,
7677
to_remove: None,
78+
#[cfg(feature = "server_remove_proposal")]
7779
to_server_remove: Vec::new(),
7880
authenticated_data: Vec::new(),
7981
signer,
@@ -109,6 +111,7 @@ impl<C: ClientConfig> ExternalCommitBuilder<C> {
109111
}
110112
}
111113

114+
#[cfg(feature = "server_remove_proposal")]
112115
#[must_use]
113116
/// Propose the server-removal of a client as part of the external commit.
114117
pub fn with_server_removal(self, to_remove: u32) -> Self {

0 commit comments

Comments
 (0)