Skip to content

Commit

Permalink
Use proper English in Monero RPC constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Dec 2, 2023
1 parent 28c2b61 commit 1c3e8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coins/monero/src/rpc/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ impl HttpRpc {
/// A daemon requiring authentication can be used via including the username and password in the
/// URL.
pub async fn new(url: String) -> Result<Rpc<HttpRpc>, RpcError> {
Self::new_custom_timeout(url, DEFAULT_TIMEOUT).await
Self::with_custom_timeout(url, DEFAULT_TIMEOUT).await
}

/// Create a new HTTP(S) RPC connection with a custom timeout.
///
/// A daemon requiring authentication can be used via including the username and password in the
/// URL.
pub async fn new_custom_timeout(
pub async fn with_custom_timeout(
mut url: String,
request_timeout: Duration,
) -> Result<Rpc<HttpRpc>, RpcError> {
Expand Down

0 comments on commit 1c3e8af

Please sign in to comment.