You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/11/16 16:55:10 UTC

[GitHub] [arrow] chriscasola commented on a change in pull request #11712: ARROW-14717: [Go] Use the ipc.Reader allocator in messageReader

chriscasola commented on a change in pull request #11712:
URL: https://github.com/apache/arrow/pull/11712#discussion_r750476945



##########
File path: go/arrow/ipc/message.go
##########
@@ -154,11 +154,18 @@ type messageReader struct {
 
 	refCount int64
 	msg      *Message
+
+	mem memory.Allocator
 }
 
 // NewMessageReader returns a reader that reads messages from an input stream.
-func NewMessageReader(r io.Reader) MessageReader {
-	return &messageReader{r: r, refCount: 1}
+func NewMessageReader(r io.Reader, opts ...Option) MessageReader {

Review comment:
       I wanted to avoid a breaking change by adding a param. Is that not an issue? Or are you suggesting a new function?




-- 
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-unsubscribe@arrow.apache.org

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