Skip to content

Commit

Permalink
Add if c.option.initMetrics back
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
  • Loading branch information
binshi-bing committed May 11, 2023
1 parent 1de96af commit 25c483f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ func (c *client) loadKeyspaceMeta(keyspace string) error {

func (c *client) setup() error {
// Init the metrics.
initAndRegisterMetrics(c.option.metricsLabels)
if c.option.initMetrics {
initAndRegisterMetrics(c.option.metricsLabels)
}

// Init the client base.
if err := c.pdSvcDiscovery.Init(); err != nil {
Expand Down

0 comments on commit 25c483f

Please sign in to comment.