Skip to content

Commit db5cb7a

Browse files
authored
[docs][producer] Update deliverAfter and deliverAt api comment (#1339)
1 parent 6c83f56 commit db5cb7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pulsar/message.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ type ProducerMessage struct {
5656

5757
// DeliverAfter requests to deliver the message only after the specified relative delay.
5858
// Note: messages are only delivered with delay when a consumer is consuming
59-
// through a `SubscriptionType=Shared` subscription. With other subscription
60-
// types, the messages will still be delivered immediately.
59+
// through a `SubscriptionType=Shared` or `SubscriptionType=KeyShared` subscription.
60+
// With other subscription types, the messages will still be delivered immediately.
6161
DeliverAfter time.Duration
6262

6363
// DeliverAt delivers the message only at or after the specified absolute timestamp.
6464
// Note: messages are only delivered with delay when a consumer is consuming
65-
// through a `SubscriptionType=Shared` subscription. With other subscription
66-
// types, the messages will still be delivered immediately.
65+
// through a `SubscriptionType=Shared` or `SubscriptionType=KeyShared` subscription.
66+
// With other subscription types, the messages will still be delivered immediately.
6767
DeliverAt time.Time
6868

6969
//Schema assign to the current message

0 commit comments

Comments
 (0)