fix get_provider_info docs

This commit is contained in:
Simon Laux
2022-05-09 23:21:06 +02:00
parent 99d50615c3
commit cc20d25b8d
2 changed files with 6 additions and 8 deletions

View File

@@ -128,9 +128,7 @@ impl CommandApi {
/// Returns provider for the given domain.
///
/// This function looks up domain in offline database first. If not
/// found, it queries MX record for the domain and looks up offline
/// database for MX domains.
/// This function looks up domain in offline database.
///
/// For compatibility, email address can be passed to this function
/// instead of the domain.
@@ -156,7 +154,7 @@ impl CommandApi {
ctx.is_configured().await
}
// Get system info for an account.
/// Get system info for an account.
async fn get_info(&self, account_id: u32) -> Result<BTreeMap<&'static str, String>> {
let ctx = self.get_context(account_id).await?;
ctx.get_info().await

View File

@@ -76,9 +76,7 @@ export class RawClient {
/**
* Returns provider for the given domain.
*
* This function looks up domain in offline database first. If not
* found, it queries MX record for the domain and looks up offline
* database for MX domains.
* This function looks up domain in offline database.
*
* For compatibility, email address can be passed to this function
* instead of the domain.
@@ -94,7 +92,9 @@ export class RawClient {
return (this._transport.request('is_configured', [accountId] as RPC.Params)) as Promise<boolean>;
}
/**
* Get system info for an account.
*/
public getInfo(accountId: T.U32): Promise<Record<string,string>> {
return (this._transport.request('get_info', [accountId] as RPC.Params)) as Promise<Record<string,string>>;
}