Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Feb 19, 2024
1 parent ffa56e0 commit 4f312aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rpc/tungstenite_client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl TungsteniteRpcClient {

/// Create a new client with a local address and default Substrate node port.
pub fn with_default_url(max_attempts: u8) -> Self {
// This unwrap is safe and regularly testbed by system tests.
// This unwrap is safe as is only regards the url parsing, which is tested.
Self::new("ws://127.0.0.1:9944", max_attempts).unwrap()
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/ws_client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl WsRpcClient {

/// Create a new client with a local address and default Substrate node port.
pub fn with_default_url() -> Self {
// This unwrap is safe and regularly testbed by system tests.
// This unwrap is safe as is only regards the url parsing, which is tested.
Self::new("ws://127.0.0.1:9944").unwrap()
}
}
Expand Down

0 comments on commit 4f312aa

Please sign in to comment.