From f3757191212c3c5cb6e1ada2ef8280b14ed81c38 Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Thu, 26 Oct 2023 14:51:52 +0200 Subject: [PATCH] Fix codegen command with the right type This was broken with the new pool. Signed-off-by: Dirkjan Bussink --- Makefile | 2 +- go/tools/sizegen/sizegen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4eca82e0fc9..8cde5b640c7 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/go/tools/sizegen/sizegen.go b/go/tools/sizegen/sizegen.go index d47753fd670..c77467c0b2e 100644 --- a/go/tools/sizegen/sizegen.go +++ b/go/tools/sizegen/sizegen.go @@ -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",