You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2025/08/18 13:24:53 UTC

[PR] chore: dogfeed api [opendal]

tisonkun opened a new pull request, #6513:
URL: https://github.com/apache/opendal/pull/6513

   Avoid unnecessary internal hack.


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] chore: dogfeed api set_temporary over with_temporary [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on code in PR #6513:
URL: https://github.com/apache/opendal/pull/6513#discussion_r2284002204


##########
core/src/raw/http_util/client.rs:
##########
@@ -226,11 +233,18 @@ impl HttpFetch for reqwest::Client {
                 .try_filter(|v| future::ready(!v.is_empty()))
                 .map_ok(Buffer::from)
                 .map_err(move |err| {
-                    Error::new(ErrorKind::Unexpected, "read data from http response")
+                    let is_temporary = is_temporary_error(&err);
+
+                    let mut err = Error::new(ErrorKind::Unexpected, "read data from http response")
                         .with_operation("http_util::Client::send")
                         .with_context("url", uri.to_string())
-                        .with_temporary(is_temporary_error(&err))

Review Comment:
   This style looks more readable?



-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: expose APIs for ErrorStatus [opendal]

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun merged PR #6513:
URL: https://github.com/apache/opendal/pull/6513


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: expose APIs for ErrorStatus [opendal]

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #6513:
URL: https://github.com/apache/opendal/pull/6513#discussion_r2284290436


##########
core/src/raw/http_util/client.rs:
##########
@@ -226,11 +233,18 @@ impl HttpFetch for reqwest::Client {
                 .try_filter(|v| future::ready(!v.is_empty()))
                 .map_ok(Buffer::from)
                 .map_err(move |err| {
-                    Error::new(ErrorKind::Unexpected, "read data from http response")
+                    let is_temporary = is_temporary_error(&err);
+
+                    let mut err = Error::new(ErrorKind::Unexpected, "read data from http response")
                         .with_operation("http_util::Client::send")
                         .with_context("url", uri.to_string())
-                        .with_temporary(is_temporary_error(&err))

Review Comment:
   Updated.



-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org