zeroshade commented on code in PR #36009:
URL: https://github.com/apache/arrow/pull/36009#discussion_r1235515948


##########
go/arrow/flight/client.go:
##########
@@ -348,10 +352,87 @@ func (c *client) Authenticate(ctx context.Context, opts 
...grpc.CallOption) erro
        return c.authHandler.Authenticate(ctx, &clientAuthConn{stream})
 }
 
+// Ensure the result of a DoAction is fully consumed
+func ReadUntilEOF(stream FlightService_DoActionClient) error {

Review Comment:
   Ah, I see you're using it in flightsql, nvm. it's fine to leave this 
exported. Though we should update the docstring. Godoc format says that the 
comment should start with the name of the function. So this comment should be 
of the form:
   
   `ReadUntilEOF will drain a stream until either an error is returned or EOF 
is encountered and nil is returned.`
   



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