From 6ac66fdd558a1f3a731a41cd0d37193ea0e3f101 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Fri, 13 Oct 2023 15:53:53 +0900 Subject: [PATCH] Fix peer clients continuously getting added --- pkg/agent/manager/loadbalancer/loadbalancer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/manager/loadbalancer/loadbalancer.go b/pkg/agent/manager/loadbalancer/loadbalancer.go index 17b4ae0..20fe479 100644 --- a/pkg/agent/manager/loadbalancer/loadbalancer.go +++ b/pkg/agent/manager/loadbalancer/loadbalancer.go @@ -1236,7 +1236,7 @@ func (m *Manager) DiscoverLoxiLBServices(loxiLBAliveCh chan *api.LoxiClient, lox } } if len(tmploxilbPeerClients) > 0 { - m.LoxiClients = append(m.LoxiClients, tmploxilbClients...) + m.LoxiPeerClients = append(m.LoxiPeerClients, tmploxilbPeerClients...) } tmp1 := m.LoxiPeerClients[:0] for _, v := range m.LoxiPeerClients {