mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Use RWMutex to control the map access
Without RWMutex, we may run into fatal error: concurrent map read and map write.
This commit is contained in:
@@ -191,7 +191,7 @@ func main() {
|
||||
// this greatly reduces the time overhead of CrawlGithub.
|
||||
getSeedDocsFunc()
|
||||
for _, d := range seedDocs {
|
||||
seen[d.ID()] = d.FileType
|
||||
seen.Set(d.ID(), d.FileType)
|
||||
}
|
||||
crawler.CrawlGithub(ctx, crawlers, docConverter, indexFunc, seen)
|
||||
case CrawlUser:
|
||||
|
||||
Reference in New Issue
Block a user