You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/08/15 02:21:11 UTC

[incubator-opendal] branch dropbox-range-read updated (d5a77c120 -> 6790d7c13)

This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a change to branch dropbox-range-read
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


    from d5a77c120 feat(services/dropbox): read support range
     new 02aea9540 fix core debug display
     new 6790d7c13 fix parse http status 206

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 core/src/services/dropbox/backend.rs | 2 +-
 core/src/services/dropbox/core.rs    | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)


[incubator-opendal] 02/02: fix parse http status 206

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch dropbox-range-read
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 6790d7c13299425cbc45fb14b94e3864a172d100
Author: suyanhanx <su...@gmail.com>
AuthorDate: Tue Aug 15 10:20:48 2023 +0800

    fix parse http status 206
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 core/src/services/dropbox/backend.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/services/dropbox/backend.rs b/core/src/services/dropbox/backend.rs
index 1994b4c94..642d22801 100644
--- a/core/src/services/dropbox/backend.rs
+++ b/core/src/services/dropbox/backend.rs
@@ -98,7 +98,7 @@ impl Accessor for DropboxBackend {
         let resp = self.core.dropbox_get(path, args).await?;
         let status = resp.status();
         match status {
-            StatusCode::OK => {
+            StatusCode::OK | StatusCode::PARTIAL_CONTENT => {
                 let meta = parse_into_metadata(path, resp.headers())?;
                 Ok((RpRead::with_metadata(meta), resp.into_body()))
             }


[incubator-opendal] 01/02: fix core debug display

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch dropbox-range-read
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 02aea9540b1ddd18baa41500159b2b5b70e1b120
Author: suyanhanx <su...@gmail.com>
AuthorDate: Tue Aug 15 09:39:23 2023 +0800

    fix core debug display
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 core/src/services/dropbox/core.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/src/services/dropbox/core.rs b/core/src/services/dropbox/core.rs
index 3e5c6590a..cb8d9769e 100644
--- a/core/src/services/dropbox/core.rs
+++ b/core/src/services/dropbox/core.rs
@@ -58,8 +58,9 @@ pub struct DropboxCore {
 
 impl Debug for DropboxCore {
     fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
-        let mut de = f.debug_struct("DropboxCore");
-        de.finish()
+        f.debug_struct("DropboxCore")
+            .field("root", &self.root)
+            .finish()
     }
 }