Skip to content

Commit

Permalink
revert iter() change
Browse files Browse the repository at this point in the history
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
  • Loading branch information
JamesKEbert committed Dec 11, 2024
1 parent 2b44ad8 commit c6049a0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions aries/aries_vcx/src/utils/encryption_envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,18 @@ impl EncryptionEnvelope {
) -> VcxResult<Vec<u8>> {
let mut forward_to_key = recipient_key;

for routing_key in routing_keys.iter() {
for routing_key in routing_keys {
debug!(
"Wrapping message in forward message; forward_to_key: {}, routing_key: {}",
forward_to_key, routing_key
);
data = EncryptionEnvelope::wrap_into_forward(wallet, data, forward_to_key, routing_key)
.await?;
data = EncryptionEnvelope::wrap_into_forward(
wallet,
data,
forward_to_key.clone(),
routing_key.clone(),
)
.await?;
forward_to_key.clone_from(&routing_key);
}
Ok(data)
Expand Down

0 comments on commit c6049a0

Please sign in to comment.