erickguan commented on code in PR #6089:
URL: https://github.com/apache/opendal/pull/6089#discussion_r2061588886
##########
core/src/services/aliyun_drive/backend.rs:
##########
@@ -370,12 +368,8 @@ impl Access for AliyunDriveBackend {
serde_json::from_reader(res.reader()).map_err(new_json_serialize_error)?;
let download_url = self.core.get_download_url(&file.file_id).await?;
- let req = Request::get(&download_url)
- .header(header::RANGE, args.range().to_header())
- .body(Buffer::new())
- .map_err(new_request_build_error)?;
+ let resp = self.core.download(&download_url, args.range()).await?;
Review Comment:
Reasonable to keep a single function.
If ever someone wants to implement presign (I didn't check if Aliyun Drive
supports presign) and we want to reuse the function, it's fairly easy to
extract the download url part again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]