Skip to content

Commit 9ac7910

Browse files
committed
Add comment about processing message
Signed-off-by: joshvanl <[email protected]>
1 parent 1d6ef6e commit 9ac7910

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/bidipubsub/bidisub/bidisub.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ func main() {
6666
log.Printf(">>Received message\n")
6767
log.Printf("event - PubsubName: %s, Topic: %s, ID: %s, Data: %s\n", msg.PubsubName, msg.Topic, msg.ID, msg.RawData)
6868

69+
// Use _MUST_ always signal the result of processing the message, else the
70+
// message will not be considered as processed and will be redelivered or
71+
// dead lettered.
6972
if err := msg.Success(); err != nil {
7073
log.Fatalf("error sending message success: %v", err)
7174
}

0 commit comments

Comments
 (0)