Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Do not lock when reading currentContextMap
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 committed Nov 30, 2022
1 parent fea415e commit 992f974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/runtime/config/contexts.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func GetCurrentContext(ctxType configapi.ContextType) (c *configapi.Context, err

// GetAllCurrentContextsMap returns all current context per ContextType
func GetAllCurrentContextsMap() (map[configapi.ContextType]*configapi.Context, error) {
node, err := getClientConfigNode()
node, err := getClientConfigNodeNoLock()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 992f974

Please sign in to comment.