Skip to content

Commit 9f194b9

Browse files
authored
fix(pubsub)!: make ShutdownBehavior non_exhaustive (#5533)
We want to make ShutdownBehavior non_exhaustive to support possible new shutdown behaviors in the future. This is a breaking change, but we are already planning to release a major version in our next change. We don't expect this to cause many issues since it seems unlikely that users will be matching on this enum. It is only used as the input in a single setter. Fixes #5532
1 parent a16fc91 commit 9f194b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/pubsub/src/subscriber/shutdown_behavior.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/// The behavior on shutdown.
1616
#[derive(Clone, Copy, Debug, PartialEq)]
17+
#[non_exhaustive]
1718
pub enum ShutdownBehavior {
1819
/// The subscriber stops reading from the underlying gRPC stream.
1920
///

0 commit comments

Comments
 (0)