Xuanwo commented on code in PR #4477:
URL: https://github.com/apache/opendal/pull/4477#discussion_r1563633701


##########
core/src/services/onedrive/writer.rs:
##########
@@ -44,24 +44,24 @@ impl OneDriveWriter {
 }
 
 impl oio::OneShotWrite for OneDriveWriter {
-    async fn write_once(&self, bs: Bytes) -> Result<()> {
+    async fn write_once(&self, bs: Buffer) -> Result<()> {
         let size = bs.len();
 
         if size <= Self::MAX_SIMPLE_SIZE {
             self.write_simple(bs).await?;
         } else {
-            self.write_chunked(bs).await?;
+            self.write_chunked(bs.to_bytes()).await?;

Review Comment:
   I do want to refactor OneDrive entirely. Its implementation doesn't fit well 
with our current design.



-- 
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]

Reply via email to