fix: unlock k8s discovery GetConns cache hit path

This commit is contained in:
buvidk 2026-07-08 20:37:22 +08:00
parent de0f1eec8a
commit 5b265c5a3f

View File

@ -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()