Skip to content

Commit a8109e2

Browse files
authored
docs(pubsub): fix comments on message for exactly once delivery (#6878)
Fixes #6877
1 parent 43cc5bc commit a8109e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pubsub/message.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ import (
3737
//
3838
// If using exactly once delivery, you should call Message.AckWithResult and
3939
// Message.NackWithResult instead. These methods will return an AckResult,
40-
// which you should wait on to obtain the status of the Ack/Nack to ensure
41-
// these were properly processed by the server. If not,
40+
// which tracks the state of acknowledgement operation. If the AckResult returns
41+
// successful, the message is guaranteed NOT to be re-delivered. Otherwise,
42+
// the AckResult will return an error with more details about the failure
43+
// and the message may be re-delivered.
4244
type Message = ipubsub.Message
4345

4446
// msgAckHandler performs a safe cast of the message's ack handler to psAckHandler.

0 commit comments

Comments
 (0)