pulsar-client-go
pulsar-client-go copied to clipboard
[client] rewrite regexConsumer to avoid duplicate code
Fixes #846
Verifying this change
- [x] Make sure that the change passes the CI checks.
This change is already covered by existing tests, such as consumer_regex_test.go
.
Does this pull request potentially affect one of the following parts:
If yes
was chosen, please highlight the changes
- The public API: (yes)
- The schema: (don't know)
- The default values of configurations: (no)
- The wire protocol: (no)
Modifications
Reuse multiTopicConsumer
in regexConsumer
to avoid duplicate code.
cc @nodece @RobertIndie @wolfstudy
Conflict resolved, ready to merge.
Ping @labuladong
Conflict resolved. #805 does the same change in regexConsumer
and multiTopicConsumer
, so this PR is still compatible.
Can this pr be merged? @nodece @Gleiphir2769 @RobertIndie