Skip to content

Commit

Permalink
Fix codegen command with the right type
Browse files Browse the repository at this point in the history
This was broken with the new pool.

Signed-off-by: Dirkjan Bussink <[email protected]>
  • Loading branch information
dbussink committed Oct 26, 2023
1 parent f8a274d commit f375719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ demo:
sizegen:
go run ./go/tools/sizegen/sizegen.go \
--in ./go/... \
--gen vitess.io/vitess/go/pools.Setting \
--gen vitess.io/vitess/go/pools/smartconnpool.Setting \
--gen vitess.io/vitess/go/vt/schema.DDLStrategySetting \
--gen vitess.io/vitess/go/vt/vtgate/engine.Plan \
--gen vitess.io/vitess/go/vt/vttablet/tabletserver.TabletPlan \
Expand Down
2 changes: 1 addition & 1 deletion go/tools/sizegen/sizegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (sizegen *sizegen) sizeStmtForType(fieldName *jen.Statement, field types.Ty
}

var defaultGenTypes = []string{
"vitess.io/vitess/go/pools.Setting",
"vitess.io/vitess/go/pools/smartconnpool.Setting",
"vitess.io/vitess/go/vt/schema.DDLStrategySetting",
"vitess.io/vitess/go/vt/vtgate/engine.Plan",
"vitess.io/vitess/go/vt/vttablet/tabletserver.TabletPlan",
Expand Down

0 comments on commit f375719

Please sign in to comment.