From d103a619c8d94436fbf05c344d2eedb04e5c83f9 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 12 Dec 2023 12:32:29 +0100 Subject: client: parameterize asset width --- client/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/lib.rs b/client/src/lib.rs index eca27fc..61365a3 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -94,12 +94,13 @@ impl Session { &self, id: &str, role: &str, + width: usize, mut writer: impl tokio::io::AsyncWrite + std::marker::Unpin, ) -> Result<()> { debug!("downloading asset {role:?} for {id:?}"); let mut r = self .client - .get(format!("{}/n/{id}/asset?role={role}", self.instance.base())) + .get(format!("{}/n/{id}/asset?role={role}&width={width}", self.instance.base())) .send() .await?; while let Some(chunk) = r.chunk().await? { -- cgit v1.2.3-70-g09d2