Skip to content

Commit 23bf044

Browse files
authored
boost: apply enumcheck directives (vitessio#1314)
Signed-off-by: Matt Layher <mdlayher@planetscale.com> Signed-off-by: Matt Layher <mdlayher@planetscale.com>
1 parent 8ff7c92 commit 23bf044

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

go/boost/server/controller/boostplan/operators/errors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"vitess.io/vitess/go/vt/sqlparser"
88
)
99

10+
//enumcheck:exhaustive
1011
type UnsupportedType int
1112

1213
const (

go/vt/proto/vtboost/vtboost.pb.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/vtboost.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ message Materialization {
4444
};
4545

4646
message GraphvizRequest {
47+
//enumcheck:exhaustive
4748
enum Clustering {
4849
NONE = 0;
4950
DOMAIN = 1;
@@ -93,6 +94,7 @@ message DescribeRecipeResponse {
9394
};
9495

9596
message ClusterState {
97+
//enumcheck:exhaustive
9698
enum State {
9799
DISABLED = 0;
98100
PRIMARY = 1;
@@ -166,6 +168,7 @@ message ControllerState {
166168
int64 recipe_version = 3;
167169

168170
message RecipeStatus {
171+
//enumcheck:exhaustive
169172
enum Progress {
170173
UNKNOWN = 0;
171174
APPLYING = 1;

0 commit comments

Comments
 (0)