From dd33bc0bcd5b99c8b271959460e5914249dfcdd4 Mon Sep 17 00:00:00 2001 From: nexustar Date: Wed, 10 Apr 2024 17:51:22 +0800 Subject: [PATCH] playground: fix default tiproxy version (#2402) --- components/playground/playground.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/playground/playground.go b/components/playground/playground.go index 7677d1f824..630fab3a2d 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -883,6 +883,7 @@ func (p *Playground) waitAllTiFlashUp() { } func (p *Playground) bindVersion(comp string, version string) (bindVersion string) { + bindVersion = version switch comp { case spec.ComponentTiKVCDC: bindVersion = p.bootOptions.TiKVCDC.Version @@ -890,9 +891,6 @@ func (p *Playground) bindVersion(comp string, version string) (bindVersion strin bindVersion = p.bootOptions.TiProxy.Version default: } - if bindVersion == "" { - bindVersion = version - } return }