Skip to content

Commit 2a2f6b9

Browse files
authored
chore: typo fixes (#7303)
1 parent e2ca749 commit 2a2f6b9

File tree

1 file changed

+3
-3
lines changed
  • transaction-metrics-tracker/src

1 file changed

+3
-3
lines changed

transaction-metrics-tracker/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static TXN_MASK: std::sync::LazyLock<u16> =
1212
std::sync::LazyLock::new(|| rand::thread_rng().gen_range(0..4096));
1313

1414
/// Check if a transaction given its signature matches the randomly selected mask.
15-
/// The signaure should be from the reference of Signature
15+
/// The signature should be from the reference of Signature
1616
pub fn should_track_transaction(signature: &[u8; SIGNATURE_BYTES]) -> bool {
1717
// We do not use the highest signature byte as it is not really random
1818
let match_portion: u16 = u16::from_le_bytes([signature[61], signature[62]]) >> 4;
@@ -21,7 +21,7 @@ pub fn should_track_transaction(signature: &[u8; SIGNATURE_BYTES]) -> bool {
2121
}
2222

2323
/// Check if a transaction packet's signature matches the mask.
24-
/// This does a rudimentry verification to make sure the packet at least
24+
/// This does a rudimentary verification to make sure the packet at least
2525
/// contains the signature data and it returns the reference to the signature.
2626
pub fn signature_if_should_track_packet(
2727
packet: &BytesPacket,
@@ -31,7 +31,7 @@ pub fn signature_if_should_track_packet(
3131
}
3232

3333
/// Get the signature of the transaction packet
34-
/// This does a rudimentry verification to make sure the packet at least
34+
/// This does a rudimentary verification to make sure the packet at least
3535
/// contains the signature data and it returns the reference to the signature.
3636
pub fn get_signature_from_packet(
3737
packet: &BytesPacket,

0 commit comments

Comments
 (0)