Skip to content

Commit 3a1a766

Browse files
geniusjoeninjazhou
andauthored
docs: update Unsubscribe interface comment (#1146)
Co-authored-by: ninjazhou <[email protected]>
1 parent f491e09 commit 3a1a766

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pulsar/consumer.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ type Consumer interface {
254254
Subscription() string
255255

256256
// Unsubscribe the consumer
257+
//
258+
// Unsubscribing will cause the subscription to be deleted,
259+
// and all the retained data can potentially be deleted based on message retention and ttl policy.
260+
//
261+
// This operation will fail when performed on a shared subscription
262+
// where more than one consumer are currently connected.
257263
Unsubscribe() error
258264

259265
// Receive a single message.

0 commit comments

Comments
 (0)