mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-16 17:07:35 +00:00
Use proper English in Monero RPC constructor
This commit is contained in:
parent
28c2b61933
commit
1c3e8af922
1 changed files with 2 additions and 2 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue