From baf12c9e3052e7bc8e21f741d69c1abd727f67bb Mon Sep 17 00:00:00 2001 From: Suhaha Date: Mon, 28 Jun 2021 14:51:25 +0800 Subject: [PATCH] fix(tidb-client): wrong status api property (#944) --- pkg/tidb/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tidb/client.go b/pkg/tidb/client.go index 856ef162a5..13111a30ed 100644 --- a/pkg/tidb/client.go +++ b/pkg/tidb/client.go @@ -172,11 +172,11 @@ func (c *Client) Get(relativeURI string) (*httpc.Response, error) { var addr string switch { case c.enforceStatusAPIAddresss: - addr = c.sqlAPIAddress + addr = c.statusAPIAddress case overrideEndpoint != "": addr = overrideEndpoint default: - addr = c.sqlAPIAddress + addr = c.statusAPIAddress } if addr == "" { if addr, err = c.forwarder.getEndpointAddr(c.forwarder.statusPort); err != nil {