nickmurr opened a new issue #512:
URL: https://github.com/apache/pulsar-client-go/issues/512
Is there a way to unsubscribe from some topics in multi-topics subscription?
```go
consumer, err := pulsarClient.Subscribe(pulsar.ConsumerOptions{
Topics: []string{"topic1", "topic2",
"topic3"},
// TopicsPattern: "topic*", // or
SubscriptionName: "test-subscription",
Type: pulsar.Shared,
SubscriptionInitialPosition: pulsar.SubscriptionPositionEarliest,
})
// TODO
consumer.UnsubscribeTopic("topic1","topic2")
consumer.CloseTopic("topic1", "topic2")
```
--
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]