diff --git a/cmd/gtctl/cluster_create.go b/cmd/gtctl/cluster_create.go index 6191266a..0959e2b4 100644 --- a/cmd/gtctl/cluster_create.go +++ b/cmd/gtctl/cluster_create.go @@ -201,7 +201,7 @@ func NewCluster(args []string, options *clusterCreateCliOptions, l logger.Logger opts = append(opts, baremetal.WithReplaceConfig(&cfg)) } - cluster, err = baremetal.NewCluster(l, clusterName, opts...) //ops.metastore + cluster, err = baremetal.NewCluster(l, clusterName, opts...) if err != nil { return err } diff --git a/pkg/cluster/baremetal/create.go b/pkg/cluster/baremetal/create.go index 800d8999..37f5dc0b 100644 --- a/pkg/cluster/baremetal/create.go +++ b/pkg/cluster/baremetal/create.go @@ -57,7 +57,7 @@ func (c *Cluster) Create(ctx context.Context, options *opt.CreateOptions) error return err } } - if err := withSpinner("GreptimeDB Cluster", c.createCluster); err != nil { //options + if err := withSpinner("GreptimeDB Cluster", c.createCluster); err != nil { if err := c.Wait(ctx, true); err != nil { return err } diff --git a/pkg/components/metasrv.go b/pkg/components/metasrv.go index a834e2b7..cbce4258 100644 --- a/pkg/components/metasrv.go +++ b/pkg/components/metasrv.go @@ -83,7 +83,7 @@ func (m *metaSrv) Start(ctx context.Context, stop context.CancelFunc, binary str Name: dirName, logDir: metaSrvLogDir, pidDir: metaSrvPidDir, - args: m.BuildArgs(i, bindAddr), //如果我传进来就在这里 + args: m.BuildArgs(i, bindAddr), } if err := runBinary(ctx, stop, option, m.wg, m.logger); err != nil { return err @@ -128,7 +128,7 @@ func (m *metaSrv) BuildArgs(params ...interface{}) []string { args = GenerateAddrArg("--http-addr", m.config.HTTPAddr, nodeID, args) args = GenerateAddrArg("--bind-addr", bindAddr, nodeID, args) - if m.metastore == true { + if m.metastore { metastore := strconv.FormatBool(m.metastore) args = GenerateAddrArg("--use-memory-store", metastore, nodeID, args) }