opensourcegeek commented on code in PR #5728:
URL: https://github.com/apache/arrow-rs/pull/5728#discussion_r1591510601


##########
arrow-flight/src/client.rs:
##########
@@ -704,3 +679,75 @@ impl FlightClient {
         request
     }
 }
+
+struct FallibleRequestStream {
+    sender: Option<Sender<FlightError>>,
+    request_streams: Pin<Box<dyn Stream<Item = Result<FlightData>> + Send + 
'static>>,
+}
+
+impl Stream for FallibleRequestStream {
+    type Item = FlightData;
+
+    fn poll_next(self: std::pin::Pin<&mut Self>, cx: &mut 
std::task::Context<'_>) -> std::task::Poll<Option<Self::Item>> {
+        let pinned = self.get_mut();
+        let mut request_streams = pinned.request_streams.as_mut();
+        match request_streams.poll_next_unpin(cx) {

Review Comment:
   I did expand the macro from original code for my own understanding, I'll 
tidy it up. Thanks



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