Skip to content

Commit

Permalink
chore: remove repetitive words (paritytech#1346)
Browse files Browse the repository at this point in the history
Signed-off-by: hanghuge <cmoman@outlook.com>
  • Loading branch information
hanghuge authored Apr 7, 2024
1 parent 659ab6e commit 166bccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/server/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl MethodSink {
self.send(json).await
}

/// Similar to to `MethodSink::send` but only waits for a limited time.
/// Similar to `MethodSink::send` but only waits for a limited time.
pub async fn send_timeout(&self, msg: String, timeout: Duration) -> Result<(), SendTimeoutError> {
self.tx.send_timeout(msg, timeout).await.map_err(Into::into)
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/server/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ impl SubscriptionSink {
self.inner.send(json).await.map_err(Into::into)
}

/// Similar to to `SubscriptionSink::send` but only waits for a limited time.
/// Similar to `SubscriptionSink::send` but only waits for a limited time.
pub async fn send_timeout(&self, msg: SubscriptionMessage, timeout: Duration) -> Result<(), SendTimeoutError> {
// Only possible to trigger when the connection is dropped.
if self.is_closed() {
Expand Down

0 comments on commit 166bccc

Please sign in to comment.