js8544 commented on code in PR #14216:
URL: https://github.com/apache/arrow/pull/14216#discussion_r978499823


##########
cpp/src/arrow/flight/test_definitions.cc:
##########
@@ -854,8 +854,8 @@ Status AppMetadataTestServer::DoGet(const 
ServerCallContext& context,
     RETURN_NOT_OK(ExampleIntBatches(&batches));
   }
   ARROW_ASSIGN_OR_RAISE(auto batch_reader, RecordBatchReader::Make(batches));
-  *data_stream = std::unique_ptr<FlightDataStream>(new NumberingStream(
-      std::unique_ptr<FlightDataStream>(new RecordBatchStream(batch_reader))));
+  *data_stream = std::make_unique<FlightDataStream>(
+      NumberingStream(std::make_unique<RecordBatchStream>(batch_reader)));

Review Comment:
   done



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