From 192f36eaab9da54613a91aa6a54a788cab8c806f Mon Sep 17 00:00:00 2001 From: JmPotato Date: Tue, 24 Dec 2024 18:42:36 +0800 Subject: [PATCH] Address the comment Signed-off-by: JmPotato --- client/clients/tso/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/clients/tso/client.go b/client/clients/tso/client.go index c2664789822..e4734b28b0c 100644 --- a/client/clients/tso/client.go +++ b/client/clients/tso/client.go @@ -456,11 +456,11 @@ func (c *Cli) tryConnectToTSOWithProxy(ctx context.Context) error { return errors.Errorf("cannot find the tso leader") } // GC the stale one. - c.conCtxMgr.GC(func(url string) bool { - _, ok := tsoStreamBuilders[url] + c.conCtxMgr.GC(func(addr string) bool { + _, ok := tsoStreamBuilders[addr] if !ok { log.Info("[tso] remove the stale tso stream", - zap.String("addr", url)) + zap.String("addr", addr)) } return !ok })