tustvold commented on code in PR #4787:
URL: https://github.com/apache/arrow-rs/pull/4787#discussion_r1318637345


##########
object_store/src/util.rs:
##########
@@ -47,9 +49,13 @@ pub(crate) fn hmac_sha256(
 }
 
 /// Collect a stream into [`Bytes`] avoiding copying in the event of a single 
chunk
-pub async fn collect_bytes<S>(mut stream: S, size_hint: Option<usize>) -> 
Result<Bytes>
+pub async fn collect_bytes<S, E>(
+    mut stream: S,
+    size_hint: Option<usize>,
+) -> StdResult<Bytes, E>

Review Comment:
   ```suggestion
   ) -> Result<Bytes, E>
   ```
   The type def just defaults to object_store::Error



-- 
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: github-unsubscr...@arrow.apache.org

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

Reply via email to