- 
                Notifications
    You must be signed in to change notification settings 
- Fork 181
[Fix] Implement Drop for UnorderedChainStream and handle send errors. #4020
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
Conversation
| match Arc::try_unwrap(self.seen) { | ||
| Ok(v) => v.into_inner(), | ||
| Err(v) => v.lock().clone(), | ||
| impl<DB, T> PinnedDrop for UnorderedChainStream<DB, T> { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find doc for implementing PinnedDrop with pin-project-lite, have you verified drop is being called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change LGTM. It will be great to add some more detailed description about what is improved or fixed by this PR
| @lemmih perhaps we could also modify the  | 
| 
 Sure. But I'm not sure I understand what is going on. | 
| 
 Basically we couldn't move out of  | 
Summary of changes
Changes introduced in this pull request:
PinnedDropforUnorderedChainStreamto make sure we cleanup automatically.UnorderedChainStreamis dropped, there is no need to panic when the receiver channel is closed.join_workersmethod as we are cleaning up inDrop.into_seenimplementation to work properly withDropand avoidingArcnuances.Reference issue to close (if applicable)
Closes #3991
Other information and links
Change checklist