Skip to content

Commit

Permalink
fix(pubsub): increase modack deadline RPC timeout (#6289)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongalex authored Jun 30, 2022
1 parent f53363a commit d24600f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func (it *messageIterator) sendModAck(m map[string]bool, deadline time.Duration)
// transient (since the deadline is relative to the current time) and it
// isn't crucial for correctness (since expired messages will just be
// resent).
cctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
cctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel()
bo := gax.Backoff{
Initial: 100 * time.Millisecond,
Expand Down

0 comments on commit d24600f

Please sign in to comment.