Skip to content

Commit

Permalink
revert: to ack without results
Browse files Browse the repository at this point in the history
  • Loading branch information
erzhae committed Aug 12, 2024
1 parent 78c9c69 commit 5457347
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,8 @@ func (c *Client) Subscribe(ctx context.Context, subscriptionId string, conf Subs
return
}

result, err := msg.AckWithResult().Get(ctx)
if err != nil {
fmt.Printf("[pubsub][onMessageAckErr] err: %v", err)
return
}
fmt.Printf("[pubsub][onMessageAcked] status: %d, messageId: %s", result, message.Id)
msg.Ack()
fmt.Printf("[pubsub][onMessageAcked] id: %s", message.Id)
})
}

Expand Down

0 comments on commit 5457347

Please sign in to comment.