Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: ThetaSinner <[email protected]>
Co-authored-by: Jost <[email protected]>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent 9390287 commit 584e48a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rust/sbd-e2e-crypto-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl Default for Config {
}
}

// tokio mutex required to ensure ordering on new stream messages
// we can't send in parallel over the same sub-client anyways.
// tokio mutex required to ensure ordering on new stream messages.
// We can't send in parallel over the same sub-client anyways.
type ClientSync = tokio::sync::Mutex<sbd_client::SbdClient>;

/// Handle to receive data from the crypto connection.
Expand Down
4 changes: 2 additions & 2 deletions rust/sbd-e2e-crypto-client/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub enum Protocol {
message: bytes::Bytes,
},

/// Request for a new descryption stream state.
/// Request for a new decryption stream state.
RequestNewStream {
#[allow(missing_docs)]
full: bytes::Bytes,
Expand Down Expand Up @@ -237,7 +237,7 @@ mod test {
}

#[test]
fn other() {
fn invalid_type() {
let mut exp_other = bytes::BytesMut::new();
exp_other.extend_from_slice(PUB_KEY);
exp_other.extend_from_slice(&[0x42]);
Expand Down

0 comments on commit 584e48a

Please sign in to comment.