We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f248ef commit c9e5f82Copy full SHA for c9e5f82
mctp-estack/src/router.rs
@@ -728,11 +728,13 @@ impl<'r> RouterAsyncReqChannel<'r> {
728
729
/// This must be called prior to drop whenever `tag_noexpire()` is used.
730
///
731
- /// A workaround until async drop is implemented in Rust itself.
+ /// Failure to call will result in leaking tags in the Router.
732
+ ///
733
+ /// This is a workaround until async drop is implemented in Rust itself.
734
/// <https://github.com/rust-lang/rust/issues/126482>
- pub async fn async_drop(self) {
735
+ pub async fn async_drop(mut self) {
736
if !self.tag_expires {
- if let Some(tag) = self.sent_tag {
737
+ if let Some(tag) = self.sent_tag.take() {
738
self.router.app_release_tag(self.eid, tag).await;
739
}
740
0 commit comments