From 0fc35f3800b74e942b7b902d321e4883beec067b 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 comment --- 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 3cf61f9bb416..6cad719b5ab0 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 ab7bfda43db5..f9db36dc63d1 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!(addrres=%addr, "Missing DNS name in WSS address"); return Err(Error::InvalidMultiaddr(addr)); } break (true, path.into_owned());