Use proper English in Monero RPC constructor

This commit is contained in:
Luke Parker
2023-12-02 00:46:34 -05:00
parent 28c2b61933
commit 1c3e8af922

View File

@@ -61,14 +61,14 @@ impl HttpRpc {
/// A daemon requiring authentication can be used via including the username and password in the /// A daemon requiring authentication can be used via including the username and password in the
/// URL. /// URL.
pub async fn new(url: String) -> Result<Rpc<HttpRpc>, RpcError> { 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. /// 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 /// A daemon requiring authentication can be used via including the username and password in the
/// URL. /// URL.
pub async fn new_custom_timeout( pub async fn with_custom_timeout(
mut url: String, mut url: String,
request_timeout: Duration, request_timeout: Duration,
) -> Result<Rpc<HttpRpc>, RpcError> { ) -> Result<Rpc<HttpRpc>, RpcError> {