Skip to content

Commit

Permalink
fix typos in cherry-picking_
Browse files Browse the repository at this point in the history
  • Loading branch information
germ-mark committed Dec 11, 2024
1 parent 16854ef commit b1f0139
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion mls-rs/src/group/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,11 @@ where
signing_identity: Option<SigningIdentity>,
leaf_node_extensions: Option<ExtensionList>,
) -> Result<Proposal, MlsError> {
let leaf_node = self.updated_leaf_node(signer, signing_identity).await?;
let leaf_node = self.updated_leaf_node(
signer,
signing_identity,
leaf_node_extensions)
.await?;
Ok(Proposal::Update(UpdateProposal { leaf_node }))
}

Expand Down Expand Up @@ -954,6 +958,7 @@ where
&mut self,
signer: Option<SignatureSecretKey>,
signing_identity: Option<SigningIdentity>,
leaf_node_extensions: Option<ExtensionList>,
) -> Result<LeafNode, MlsError> {
// Grab a copy of the current node and update it to have new key material

Expand Down
2 changes: 1 addition & 1 deletion mls-rs/src/group/proposal_filter/filtering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ pub(crate) fn filter_out_invalid_proposers(
#[cfg(feature = "replace_proposal")]
for i in (0..proposals.replace_proposals().len()).rev() {
let p = &proposals.replace_proposals()[i];
let res = proposer_can_propose(p.sender, ProposalType::REPLACE, p.is_by_reference());
let res = proposer_can_propose(p.sender, ProposalType::REPLACE, &p.source);

if !apply_strategy(strategy, p.is_by_reference(), res)? {
proposals.remove::<ReplaceProposal>(i);
Expand Down
2 changes: 1 addition & 1 deletion mls-rs/src/group/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub(crate) struct Snapshot {
epoch_secrets: EpochSecrets,
key_schedule: KeySchedule,
#[cfg(feature = "by_ref_proposal")]
pending_updates: SmallMap<HpkePublicKey, (HpkeSecretKey, PendingUpdate)>,
pending_updates: SmallMap<HpkePublicKey, PendingUpdate>,
pending_commit: Option<CommitGeneration>,
signer: SignatureSecretKey,
}
Expand Down

0 comments on commit b1f0139

Please sign in to comment.