miroim commented on code in PR #5950:
URL: https://github.com/apache/opendal/pull/5950#discussion_r2028841081


##########
core/src/services/ipfs/backend.rs:
##########
@@ -435,7 +379,7 @@ impl DirStream {
 
 impl oio::PageList for DirStream {
     async fn next_page(&self, ctx: &mut oio::PageContext) -> Result<()> {
-        let resp = self.backend.ipfs_list(&self.path).await?;
+        let resp = self.backend.core.ipfs_list(&self.path).await?;

Review Comment:
   Thanks for your review!
   
   `DirStream` needs some `backend` functionality
   
https://github.com/apache/opendal/blob/36240c1aa186c287a6456adf7083311ef237b042/core/src/services/ipfs/backend.rs#L400-L404
   or we can  have:
   ```Rust
   pub struct DirStream {
       backend: Arc<IpfsBackend>,
       core: Arc<IpfsCore>,
       path: String,
   }
   ```



-- 
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-unsubscr...@opendal.apache.org

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

Reply via email to