Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanKung committed Jul 6, 2023
1 parent 05bc875 commit 594a21d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/dht/did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub struct BiasId {
/// in a finite ring. It defines a method `rotate` which allows applying
/// the transformation to the implementing type.
pub trait Rotate<Rhs = u16> {
/// output type of rotate opeation
/// output type of rotate operation
type Output;
/// rotate a Did with given angle
fn rotate(&self, angle: Rhs) -> Self::Output;
Expand Down
2 changes: 1 addition & 1 deletion core/src/dht/stabilization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Stabilization {
}
}

/// Get timeout of waitting delays.
/// Get timeout of waiting delays.
pub fn get_timeout(&self) -> usize {
self.timeout
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/message/handlers/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub async fn handle_join_dht(act: PeerRingAction) -> Result<Vec<MessageHandlerEv
}
}

/// When handling update successor, it may cause two situtation, and it may cause multiple situation.
/// When handling update successor, it may cause two situation, and it may cause multiple situation.
/// 1. DHT put a connected successor into successor list, and ask successor_list of it.
/// 2. DHT wana set a new successor into successor list, but it's not connected, thus it request to connect first.
#[cfg_attr(feature = "wasm", async_recursion(?Send))]
Expand Down
2 changes: 1 addition & 1 deletion core/src/swarm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ impl Swarm {

/// Disconnect a transport. There are three steps:
/// 1) remove from DHT;
/// 2) remove from trasnport pool;
/// 2) remove from transport pool;
/// 3) close the transport connection;
pub async fn disconnect(&self, did: Did) -> Result<()> {
tracing::info!("disconnect {:?}", did);
Expand Down

0 comments on commit 594a21d

Please sign in to comment.