From 11a7ad0a6f66d692f1e9e002bb73ea6f737c84bb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 24 Sep 2023 19:19:21 +0200 Subject: flat import (untested) + parallel fed download --- client/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src') diff --git a/client/src/lib.rs b/client/src/lib.rs index eb978ee..a3c61aa 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -5,6 +5,7 @@ */ use anyhow::Result; use jellycommon::NodePublic; +use log::debug; use reqwest::{ header::{HeaderMap, HeaderValue}, Client, @@ -77,6 +78,7 @@ impl Session { } pub async fn node(&self, id: &str) -> Result { + debug!("downloading node {id:?}"); Ok(self .client .get(format!("{}/n/{id}", self.instance.base())) @@ -88,6 +90,7 @@ impl Session { // TODO use AssetRole instead of str pub async fn node_asset(&self, id: &str, role: &str, mut writer: impl Write) -> Result<()> { + debug!("downloading asset {role:?} for {id:?}"); let mut r = self .client .get(format!("{}/n/{id}/asset?role={role}", self.instance.base())) -- cgit v1.2.3-70-g09d2