Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Parreiras <[email protected]>
  • Loading branch information
gmpify committed Nov 20, 2024
1 parent eb09d53 commit 462c10d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions go/vt/vttest/vtprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type VtProcess struct {
Env []string
BindAddress string
BindAddressMysql string
BindAddressGprc string
BindAddressGprc string
Port int
PortGrpc int
HealthCheck HealthChecker
Expand Down Expand Up @@ -206,12 +206,12 @@ func VtcomboProcess(environment Environment, args *Config, mysql MySQLManager) (
if args.VtComboBindAddress != "" {
vtcomboBindAddress = args.VtComboBindAddress
}
grpcBindAddress := "127.0.0.1"

grpcBindAddress := "127.0.0.1"
if servenv.GRPCBindAddress() != "" {
grpcBindAddress = servenv.GRPCBindAddress()
}

mysqlAddress := "127.0.0.1"
if args.MySQLServerBindAddress != "" {
mysqlAddress = args.MySQLServerBindAddress
Expand All @@ -223,7 +223,7 @@ func VtcomboProcess(environment Environment, args *Config, mysql MySQLManager) (
LogDirectory: environment.LogDirectory(),
Binary: environment.BinaryPath("vtcombo"),
BindAddress: vtcomboBindAddress,
BindAddressGprc: grpcBindAddress,
BindAddressGprc: grpcBindAddress,
BindAddressMysql: mysqlAddress,
Port: environment.PortForProtocol("vtcombo", ""),
PortGrpc: environment.PortForProtocol("vtcombo", "grpc"),
Expand Down

0 comments on commit 462c10d

Please sign in to comment.