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 middleware translations #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CasperNan
Copy link

修复middleware中的translations中间件在压测下报map线程安全的问题

主要是注册翻译器主要是在validator的map中注册的 所以只用注册一次就够了 后面翻译验证错误时 拿出原本存在global的universal-translator即可复用之前用于注册的Translator

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.

1 participant