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

StorageClient需要每次调用时创建吧 Test样例中有些误导 #97

Open
lvzhihong opened this issue Jan 14, 2022 · 1 comment
Open

Comments

@lvzhihong
Copy link

StorageClient类注释清楚的写着 不是线程安全的 放在全局变量中定义 并发下会有空指针的问题

每次调用后 finally中会把storage server = null 并发下其他线程在使用storageserver的时候 会有空指针的问题

建议修改Test类中的使用样例 避免误导

@mengpengfei
Copy link
Contributor

感谢你提出的宝贵建议,我这考虑加下

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

No branches or pull requests

2 participants