We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a944df2 commit 37c1be6Copy full SHA for 37c1be6
src/consul/client.rs
@@ -45,16 +45,6 @@ impl Consul {
45
return self.http_client.request(method, format!("{address}{path}"));
46
}
47
48
- pub async fn status_leader(&self) -> Result<String> {
49
- let res = self
50
- .make_request(Method::GET, "/v1/status/leader")
51
- .send()
52
- .await?
53
- .json::<String>()
54
- .await?;
55
- Ok(res)
56
- }
57
-
58
pub async fn get_kv(&self, path: String) -> Result<Vec<KVResponse>> {
59
let res = self
60
.make_request(Method::GET, &*format!("/v1/kv/{path}"))
0 commit comments