You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/12/15 15:30:39 UTC

[GitHub] [rocketmq-client-go] wangweizZZ commented on a change in pull request #745: [ISSUE #737] Add ManualPullConsumer

wangweizZZ commented on a change in pull request #745:
URL: https://github.com/apache/rocketmq-client-go/pull/745#discussion_r769737600



##########
File path: primitive/interceptor.go
##########
@@ -29,6 +29,10 @@ type Invoker func(ctx context.Context, req, reply interface{}) error
 // use type assert to get real type.
 type Interceptor func(ctx context.Context, req, reply interface{}, next Invoker) error
 
+var NoopInterceptor = func(ctx context.Context, req, reply interface{}) error {

Review comment:
       In my use, I want to trigger the interceptor as AfterPullMessageHook. [link code](https://github.com/apache/rocketmq-client-go/pull/745/commits/6e2b133181a6763d6f0aef746187d88aab9ae7e4#diff-3e4be2af9a7961a81e0a80bf3e76646ef3f82fc73ed04f636960e990f4d9260fR116)
   But I don't need to do some operations after the interceptor ends.




-- 
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: dev-unsubscribe@rocketmq.apache.org

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