Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix map concurrent write issue #529

Merged
merged 1 commit into from
Jan 4, 2022
Merged

Conversation

DuodenumL
Copy link
Contributor

这里生成的config后续会被用于Engine.VirtualizationCreate,里面会写入config.LogConfig。所以如果这里简单地使用entry.Log.Config的话,实质上所有的config.LogConfig都是同一个map,就会造成并发写入,直接panic。

@CMGS CMGS merged commit 4d47aea into projecteru2:master Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants