From 2b568c3adc68ca028380130e6e9d6a84b8775c46 Mon Sep 17 00:00:00 2001 From: alex <152680487+bodhi-crypo@users.noreply.github.com> Date: Wed, 20 Dec 2023 03:32:37 +0000 Subject: [PATCH] chore: fix typos in comment --- libp2p/src/transport_ext.rs | 2 +- protocols/relay/src/behaviour.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/src/transport_ext.rs b/libp2p/src/transport_ext.rs index bca0b8f4576..4f07484fc1f 100644 --- a/libp2p/src/transport_ext.rs +++ b/libp2p/src/transport_ext.rs @@ -33,7 +33,7 @@ use std::sync::Arc; /// Trait automatically implemented on all objects that implement `Transport`. Provides some /// additional utilities. pub trait TransportExt: Transport { - /// Adds a layer on the `Transport` that logs all trafic that passes through the streams + /// Adds a layer on the `Transport` that logs all traffic that passes through the streams /// created by it. /// /// This method returns an `Arc` that can be used to retrieve the total number diff --git a/protocols/relay/src/behaviour.rs b/protocols/relay/src/behaviour.rs index 59f679c9890..df8443e8359 100644 --- a/protocols/relay/src/behaviour.rs +++ b/protocols/relay/src/behaviour.rs @@ -202,12 +202,12 @@ pub enum Event { dst_peer_id: PeerId, error: inbound_hop::Error, }, - /// An inbound cirucit request has been accepted. + /// An inbound circuit request has been accepted. CircuitReqAccepted { src_peer_id: PeerId, dst_peer_id: PeerId, }, - /// An outbound connect for an inbound cirucit request failed. + /// An outbound connect for an inbound circuit request failed. #[deprecated( note = "Will be removed in favor of logging them internally, see for details." )]