fix: unlock k8s discovery GetConns cache hit path

pull/3765/head
buvidk 2 days ago
parent de0f1eec8a
commit 5b265c5a3f

@ -101,6 +101,7 @@ func (k *KubernetesConnManager) GetConns(ctx context.Context, serviceName string
// Check if another goroutine has already initialized the connections when we released the read lock
conns, exists = k.connMap[serviceName]
if exists {
k.mu.Unlock()
return conns, nil
}
k.mu.Unlock()

Loading…
Cancel
Save