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(value): value在迭代器中会造成死锁,使用IntoIterator替换Iter #64

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

yIllusionSky
Copy link
Contributor

No description provided.

@wandercn
Copy link
Owner

具体什么场景会出现死锁?有重现代码吗?

@wandercn
Copy link
Owner

fn next(&mut self) -> Option<Self::Item> { self.0 .iter() .next()
......
}
self.0.iter().next() 只能获取到第一个key,无限获取不尽bug

@wandercn wandercn merged commit 121d27e into wandercn:master Jul 31, 2024
1 check passed
@yIllusionSky
Copy link
Contributor Author

fn next(&mut self) -> Option<Self::Item> { self.0 .iter() .next() ...... } self.0.iter().next() 只能获取到第一个key,无限获取不尽bug

是的,我在用alipay_sdk_rust的时候发现了这个问题,追查了下问题出在这

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.

2 participants