Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
  • Loading branch information
NeJan2020 committed Nov 27, 2023
1 parent 11e51b6 commit 7d4ed5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collector/pkg/metadata/kubernetes/k8scache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d4ed5c

Please sign in to comment.