From 3e76ebbd4974c70ab10567486a9412ee9e5ebadd Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 14 May 2020 14:44:19 -0400 Subject: [PATCH] Remove unused var The usage was removed in 8e22d80e3550592a32144f2d1c84ebf6becb957b, however it seems there may be a bug here because the cluster name is not updated when the target changes. --- agent/xds/endpoints.go | 1 - 1 file changed, 1 deletion(-) diff --git a/agent/xds/endpoints.go b/agent/xds/endpoints.go index dcf3a7317..b96934d5b 100644 --- a/agent/xds/endpoints.go +++ b/agent/xds/endpoints.go @@ -325,7 +325,6 @@ func (s *Server) endpointsFromDiscoveryChain( ) if actualTargetID != targetID { targetID = actualTargetID - target = chain.Targets[actualTargetID] } failover = nil