From d74b19ee79b7847a183e18332ecafd39dd388a6c Mon Sep 17 00:00:00 2001 From: NinaLua Date: Tue, 30 Apr 2024 14:22:19 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: NinaLua --- protocols/gossipsub/src/behaviour/tests.rs | 2 +- transports/websocket/src/framed.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/gossipsub/src/behaviour/tests.rs b/protocols/gossipsub/src/behaviour/tests.rs index 3cf61f9bb41..6cad719b5ab 100644 --- a/protocols/gossipsub/src/behaviour/tests.rs +++ b/protocols/gossipsub/src/behaviour/tests.rs @@ -4546,7 +4546,7 @@ fn test_limit_number_of_message_ids_inside_ihave() { //emit gossip gs.emit_gossip(); - // both peers should have gotten 100 random ihave messages, to asser the randomness, we + // both peers should have gotten 100 random ihave messages, to assert the randomness, we // assert that both have not gotten the same set of messages, but have an intersection // (which is the case with very high probability, the probabiltity of failure is < 10^-58). diff --git a/transports/websocket/src/framed.rs b/transports/websocket/src/framed.rs index ab7bfda43db..fb2f4b513d4 100644 --- a/transports/websocket/src/framed.rs +++ b/transports/websocket/src/framed.rs @@ -511,7 +511,7 @@ fn parse_ws_dial_addr(addr: Multiaddr) -> Result> { Some(Protocol::Ws(path)) => break (false, path.into_owned()), Some(Protocol::Wss(path)) => { if dns_name.is_none() { - tracing::debug!(addrress=%addr, "Missing DNS name in WSS address"); + tracing::debug!(address=%addr, "Missing DNS name in WSS address"); return Err(Error::InvalidMultiaddr(addr)); } break (true, path.into_owned());