xujianhai666 commented on a change in pull request #117: [#ISSUE 104] Support
ACL
URL: https://github.com/apache/rocketmq-client-go/pull/117#discussion_r303765426
##########
File path: internal/remote/remote_client.go
##########
@@ -192,6 +196,18 @@ func (c *RemotingClient) createScanner(r io.Reader)
*bufio.Scanner {
}
func (c *RemotingClient) sendRequest(conn net.Conn, request *RemotingCommand)
error {
+ var err error
+ if c.interceptor != nil {
+ err = c.interceptor(context.Background(), request, nil,
func(ctx context.Context, req, reply interface{}) error {
Review comment:
这样写的话,interceptor 无法修改真正处理的 request, 确定?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services