Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NinaLua committed Apr 30, 2024
1 parent 6b270f6 commit 0fc35f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocols/gossipsub/src/behaviour/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion transports/websocket/src/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ fn parse_ws_dial_addr<T>(addr: Multiaddr) -> Result<WsAddress, Error<T>> {
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());
Expand Down

0 comments on commit 0fc35f3

Please sign in to comment.