From a8109e2d3257d1698ce1b751618428ef25cbb859 Mon Sep 17 00:00:00 2001 From: Alex Hong <9397363+hongalex@users.noreply.github.com> Date: Mon, 17 Oct 2022 11:48:12 -0700 Subject: [PATCH] docs(pubsub): fix comments on message for exactly once delivery (#6878) Fixes #6877 --- pubsub/message.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pubsub/message.go b/pubsub/message.go index 049d034e386..1bebb9fc526 100644 --- a/pubsub/message.go +++ b/pubsub/message.go @@ -37,8 +37,10 @@ import ( // // If using exactly once delivery, you should call Message.AckWithResult and // Message.NackWithResult instead. These methods will return an AckResult, -// which you should wait on to obtain the status of the Ack/Nack to ensure -// these were properly processed by the server. If not, +// which tracks the state of acknowledgement operation. If the AckResult returns +// successful, the message is guaranteed NOT to be re-delivered. Otherwise, +// the AckResult will return an error with more details about the failure +// and the message may be re-delivered. type Message = ipubsub.Message // msgAckHandler performs a safe cast of the message's ack handler to psAckHandler.