From 9aa0cceedb52ddea5b08af7372f4c87f60e401d4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 3 Aug 2023 00:01:51 +0200 Subject: not exposing private data --- client/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/lib.rs b/client/src/lib.rs index 4b111d1..39bd1fd 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -1,5 +1,5 @@ use anyhow::Result; -use jellycommon::Node; +use jellycommon::NodePublic; use reqwest::{ header::{HeaderMap, HeaderValue}, Client, @@ -69,7 +69,7 @@ impl Session { format!("session={}", self.session_token) } - pub async fn node(&self, id: &str) -> Result { + pub async fn node(&self, id: &str) -> Result { Ok(self .client .get(format!("{}/n/{id}", self.instance.base())) -- cgit v1.2.3-70-g09d2