Skip to content

Commit 37c1be6

Browse files
committed
Remove unused function
1 parent a944df2 commit 37c1be6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/consul/client.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ impl Consul {
4545
return self.http_client.request(method, format!("{address}{path}"));
4646
}
4747

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-
5848
pub async fn get_kv(&self, path: String) -> Result<Vec<KVResponse>> {
5949
let res = self
6050
.make_request(Method::GET, &*format!("/v1/kv/{path}"))

0 commit comments

Comments
 (0)