Skip to content

Commit

Permalink
remove useless config item
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox committed Dec 28, 2023
1 parent 3ddb7ad commit 06bf82d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/playground/instance/tiproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,10 @@ func (c *TiProxy) Start(ctx context.Context, version utils.Version) error {
enc := toml.NewEncoder(cf)
enc.Indent = ""
if err := enc.Encode(spec.MergeConfig(userConfig, map[string]any{
"proxy.pd-addrs": strings.Join(endpoints, ","),
"proxy.addr": utils.JoinHostPort(c.Host, c.Port),
"proxy.require-backend-tls": false,
"api.addr": utils.JoinHostPort(c.Host, c.StatusPort),
"log.log-file.filename": c.LogFile(),
"proxy.pd-addrs": strings.Join(endpoints, ","),
"proxy.addr": utils.JoinHostPort(c.Host, c.Port),
"api.addr": utils.JoinHostPort(c.Host, c.StatusPort),
"log.log-file.filename": c.LogFile(),
})); err != nil {
return err
}
Expand Down

0 comments on commit 06bf82d

Please sign in to comment.