westonpace commented on a change in pull request #11616:
URL: https://github.com/apache/arrow/pull/11616#discussion_r785223044



##########
File path: cpp/src/arrow/ipc/reader.cc
##########
@@ -1000,6 +1049,13 @@ static Future<std::shared_ptr<Message>> 
ReadMessageFromBlockAsync(
                           io_context);
 }
 
+static Result<std::unique_ptr<Message>> ReadMessageFromCached(
+    std::shared_ptr<Buffer> cached_metadata, std::shared_ptr<Buffer> 
cached_data) {
+  ARROW_ASSIGN_OR_RAISE(auto message,
+                        ReadMessage(std::move(cached_metadata), 
std::move(cached_data)));
+  return std::move(message);
+}
+

Review comment:
       Good point.  I inlined it.




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