From c4c2c24988087e30a363960299a3f9aef7deb84a Mon Sep 17 00:00:00 2001 From: Dede Lamb Date: Thu, 25 Apr 2024 07:34:13 +1000 Subject: [PATCH] reset parseErr in the right place --- go/vt/vtgateproxy/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtgateproxy/discovery.go b/go/vt/vtgateproxy/discovery.go index 2b3f90d35ad..ed69086d687 100644 --- a/go/vt/vtgateproxy/discovery.go +++ b/go/vt/vtgateproxy/discovery.go @@ -191,11 +191,11 @@ func (b *JSONGateResolverBuilder) start() error { } continue } + parseErr = nil if !contentsChanged { parseCount.Add("unchanged", 1) continue } - parseErr = nil parseCount.Add("changed", 1) // notify all the resolvers that the targets changed