From 7d4ed5c9d974de03dff7c60dc6c80f82512a1e42 Mon Sep 17 00:00:00 2001 From: niejiangang Date: Mon, 27 Nov 2023 10:09:46 +0800 Subject: [PATCH] fix: fix typo Signed-off-by: niejiangang --- collector/pkg/metadata/kubernetes/k8scache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/pkg/metadata/kubernetes/k8scache.go b/collector/pkg/metadata/kubernetes/k8scache.go index 2a45b13e9..db0c8f60a 100644 --- a/collector/pkg/metadata/kubernetes/k8scache.go +++ b/collector/pkg/metadata/kubernetes/k8scache.go @@ -292,8 +292,8 @@ func (c *K8sMetaDataCache) GetNodeNameByIp(ip string) (string, bool) { } func SetupCache(cache *K8sMetaDataCache, nodeMap *NodeMap, serviceMap *ServiceMap, rsMap *ReplicaSetMap) { - RLockDurningSetup() - defer RUnlockDurningSetup() + RLockForSetup() + defer RUnlockForSetup() if cache != nil { if cache.ContainerIdInfo != nil { // Recalculate local cacheMap