Rich-T-kid commented on code in PR #11010:
URL: https://github.com/apache/arrow-rs/pull/11010#discussion_r3958286791


##########
arrow-flight/src/utils.rs:
##########
@@ -81,9 +81,9 @@ pub fn flight_data_to_arrow_batch(
 }
 
 /// Convert `RecordBatch`es to wire protocol `FlightData`s
-pub fn batches_to_flight_data(
+pub fn batches_to_flight_data<'a>(
     schema: &Schema,
-    batches: Vec<RecordBatch>,
+    batches: impl Iterator<Item = &'a RecordBatch>,

Review Comment:
   good idea, makes the pr even smaller



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