Commit 0135d93
authored
fix(pubsub/v2): respect ShutdownBehavior when handling timeout (#13021)
Previously, `ShutdownOptions.Behavior` was never respected — when a
positive `Timeout` was set, messages were always nacked. This PR fixes
the shutdown logic so that messages are only nacked if `Behavior` is
explicitly set to `ShutdownBehaviorNackImmediately`. This makes the
`Behavior` field effective as intended.
related to #128291 parent 800b556 commit 0135d93
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
485 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
| |||
0 commit comments