From 3a37d42e0c12d6a382849cca6cd2df63519b336e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 22 Jan 2024 00:19:46 +0100 Subject: fix config load --- client/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'client/src') diff --git a/client/src/lib.rs b/client/src/lib.rs index 19be760..f55929a 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -78,6 +78,18 @@ impl Session { .get(format!("{}/n/{id}", self.instance.base())) .send() .await? + .error_for_status()? + .json() + .await?) + } + pub async fn node_extended(&self, id: &str) -> Result { + debug!("downloading extended node {id:?}"); + Ok(self + .client + .get(format!("{}/n/{id}/extended", self.instance.base())) + .send() + .await? + .error_for_status()? .json() .await?) } -- cgit v1.2.3-70-g09d2