From 3a1a766e9cc9e9c3afa78ea9e078aba9131ad2da Mon Sep 17 00:00:00 2001 From: zhou zhuohan <843520313@qq.com> Date: Tue, 2 Jan 2024 14:45:43 +0800 Subject: [PATCH] docs: update Unsubscribe interface comment (#1146) Co-authored-by: ninjazhou --- pulsar/consumer.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pulsar/consumer.go b/pulsar/consumer.go index a62eabe1ed..667bff66cd 100644 --- a/pulsar/consumer.go +++ b/pulsar/consumer.go @@ -254,6 +254,12 @@ type Consumer interface { Subscription() string // Unsubscribe the consumer + // + // Unsubscribing will cause the subscription to be deleted, + // and all the retained data can potentially be deleted based on message retention and ttl policy. + // + // This operation will fail when performed on a shared subscription + // where more than one consumer are currently connected. Unsubscribe() error // Receive a single message.