aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/cloud.google.com/go/pubsub/message.go
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-07-25 07:50:36 +0000
committerTaras Madan <tarasmadan@google.com>2023-07-25 08:27:48 +0000
commitb423bd03401d00e754d5e5c0236feda4dfb02e28 (patch)
treeb4c5cb53485b00adb2877b7fa27b9b6e5f02552a /vendor/cloud.google.com/go/pubsub/message.go
parente06c669f49a06146914b04a1fbbdd21a0bf1d7b1 (diff)
mod: do: bump golang.org/x/oauth2 from 0.5.0 to 0.10.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.5.0 to 0.10.0. - [Commits](https://github.com/golang/oauth2/compare/v0.5.0...v0.10.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/cloud.google.com/go/pubsub/message.go')
-rw-r--r--vendor/cloud.google.com/go/pubsub/message.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/cloud.google.com/go/pubsub/message.go b/vendor/cloud.google.com/go/pubsub/message.go
index 94010cd0c..33d87735c 100644
--- a/vendor/cloud.google.com/go/pubsub/message.go
+++ b/vendor/cloud.google.com/go/pubsub/message.go
@@ -157,20 +157,20 @@ func (ah *psAckHandler) OnNack() {
}
func (ah *psAckHandler) OnAckWithResult() *AckResult {
+ // call done with true to indicate ack.
+ ah.done(true)
if !ah.exactlyOnceDelivery {
return newSuccessAckResult()
}
- // call done with true to indicate ack.
- ah.done(true)
return ah.ackResult
}
func (ah *psAckHandler) OnNackWithResult() *AckResult {
+ // call done with false to indicate nack.
+ ah.done(false)
if !ah.exactlyOnceDelivery {
return newSuccessAckResult()
}
- // call done with false to indicate nack.
- ah.done(false)
return ah.ackResult
}