summaryrefslogtreecommitdiff
path: root/src/catalog.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/catalog.rs')
-rw-r--r--src/catalog.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/catalog.rs b/src/catalog.rs
index 042f745..fe82c5a 100644
--- a/src/catalog.rs
+++ b/src/catalog.rs
@@ -5,7 +5,6 @@
use std::cmp;
use std::collections::HashMap;
-use std::fmt::Write;
use std::sync::Arc;
use std::time::Duration;
@@ -178,25 +177,6 @@ impl Consul {
rx
}
-
- async fn get_with_index<T: for<'de> Deserialize<'de>>(
- &self,
- mut url: String,
- last_index: Option<usize>,
- ) -> Result<WithIndex<T>> {
- if let Some(i) = last_index {
- if url.contains('?') {
- write!(&mut url, "&index={}", i).unwrap();
- } else {
- write!(&mut url, "?index={}", i).unwrap();
- }
- }
- debug!("GET {} as {}", url, std::any::type_name::<T>());
-
- let http = self.client.get(&url).send().await?;
-
- Ok(WithIndex::<T>::index_from(&http)?.value(http.json().await?))
- }
}
async fn do_watch_all_service_health(