Skip to content

Commit

Permalink
移除启动参数meta-db-port,现在是不需要的
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxinwang committed Jun 8, 2024
1 parent 8bbf4f7 commit f403837
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions cmd/go_mysql_sr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/liuxinwang/go-mysql-starrocks/pkg/app"
"github.com/liuxinwang/go-mysql-starrocks/pkg/config"
"github.com/liuxinwang/go-mysql-starrocks/pkg/metrics"
"github.com/liuxinwang/go-mysql-starrocks/pkg/schema"
"github.com/liuxinwang/go-mysql-starrocks/pkg/utils"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sevlyar/go-daemon"
Expand Down Expand Up @@ -52,10 +51,6 @@ func main() {
}(cntxt)
}

if help.MetaDbPort != nil {
schema.MemDbPort = *help.MetaDbPort
}

// 进程信号处理
sc := make(chan os.Signal, 1)
signal.Notify(sc,
Expand Down
3 changes: 0 additions & 3 deletions pkg/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ const (
TypeBinary // binary
)

var MemDbHost = "localhost"
var MemDbPort = 5166 // default 5166

type Table struct {
Schema string `toml:"schema" json:"schema"`
Name string `toml:"name" json:"name"`
Expand Down
2 changes: 0 additions & 2 deletions pkg/utils/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type Help struct {
OutputType *string
Daemon *bool
HttpPort *int
MetaDbPort *int
}

func HelpInit() *Help {
Expand All @@ -27,7 +26,6 @@ func HelpInit() *Help {
help.OutputType = flag.String("type", "starrocks", "output type: starrocks, output")
help.Daemon = flag.Bool("daemon", false, "daemon run, must include param 'log-file'")
help.HttpPort = flag.Int("http-port", 6166, "http monitor port, curl http://localhost:6166/metrics")
help.MetaDbPort = flag.Int("meta-db-port", 5166, "local memory mysql server for save source table meta")
flag.BoolVar(&help.printVersion, "version", false, "print program build version")
flag.Parse()
// 这个需要放在第一个判断
Expand Down

0 comments on commit f403837

Please sign in to comment.