chore: Reformat
This commit is contained in:
parent
a563e46162
commit
43b4220de2
3 changed files with 3 additions and 5 deletions
|
@ -77,4 +77,4 @@ pub const ADD_PRE_CHAIN: Endpoint = (reqwest::Method::POST, "/ct/v1/add-pre-chai
|
||||||
///
|
///
|
||||||
/// tree_head_signature: A TreeHeadSignature for the above data.
|
/// tree_head_signature: A TreeHeadSignature for the above data.
|
||||||
/// ```
|
/// ```
|
||||||
pub const GET_STH: Endpoint = (reqwest::Method::GET, "/ct/v1/get-sth");
|
pub const GET_STH: Endpoint = (reqwest::Method::GET, "/ct/v1/get-sth");
|
||||||
|
|
|
@ -78,9 +78,7 @@ impl CtApiClient {
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_signed_tree_head(
|
pub async fn get_signed_tree_head(&self) -> reqwest::Result<GetSthResponse> {
|
||||||
&self
|
|
||||||
) -> reqwest::Result<GetSthResponse> {
|
|
||||||
self.inner_client
|
self.inner_client
|
||||||
.request(
|
.request(
|
||||||
endpoints::GET_STH.0,
|
endpoints::GET_STH.0,
|
||||||
|
|
|
@ -23,7 +23,7 @@ pub struct AddChainResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A response given when fetching the Signed Tree Head of a CT log
|
/// A response given when fetching the Signed Tree Head of a CT log
|
||||||
///
|
///
|
||||||
/// See: [`super::endpoints::GET_STH`]
|
/// See: [`super::endpoints::GET_STH`]
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct GetSthResponse {
|
pub struct GetSthResponse {
|
||||||
|
|
Loading…
Reference in a new issue