Skip to content

Commit b21ce59

Browse files
1 parent 3818304 commit b21ce59

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Source/IPC/WindAirCommands.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,10 @@ pub async fn DownloadFile(
310310
headers: Default::default(),
311311
};
312312

313-
let response = client.client
314-
.download_file(tonic::Request::new(request))
313+
let response = client
314+
.DownloadFile(request)
315315
.await
316-
.map_err(|e| format!("File download failed: {}", e))?
317-
.into_inner();
316+
.map_err(|e| format!("File download failed: {}", e))?;
318317

319318
if !response.error.is_empty() {
320319
return Err(response.error);

0 commit comments

Comments
 (0)