Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置了Subscription,但是代码里没有任何地方使用 #6

Open
noBUgm opened this issue Nov 15, 2023 · 0 comments
Open

配置了Subscription,但是代码里没有任何地方使用 #6

noBUgm opened this issue Nov 15, 2023 · 0 comments

Comments

@noBUgm
Copy link

noBUgm commented Nov 15, 2023

consumer, err := c.cli.Subscribe(pulsar.ConsumerOptions{ Topic: config.Topic, SubscriptionName: subscriptionName(config.Topic), Type: pulsar.Failover, })
ConsumerOptions的参数是否可以改成可配置的,通过业务传入,如果没有传入则用默认处理方式,如果传入了,则用传入的进行接受。因为测试环境比较多,需要多个topic进行订阅处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant