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(tauri-runtime-wry): window draw span not closing #9718

Merged
merged 2 commits into from
May 9, 2024

Conversation

lucasfernog
Copy link
Member

Backport #9717

@lucasfernog lucasfernog requested a review from a team as a code owner May 9, 2024 11:57
Comment on lines 253 to 258
while let Some(index) = store
.iter()
.position(|t| matches!(t, ActiveTracingSpan::WindowDraw { id, span: _ } if id == &window_id))
.position(|t| matches!(t, ActiveTracingSpan::WindowDraw { id: _, span: _ }))
{
store.remove(index);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably use store.retain(|t| !matches!(t, ActiveTracingSpan::WindowDraw { id: _, span: _ })) for more efficiency

@lucasfernog lucasfernog requested a review from amrbashir May 9, 2024 12:50
@lucasfernog lucasfernog merged commit 2eb2137 into 1.x May 9, 2024
24 checks passed
@lucasfernog lucasfernog deleted the fix/draw-span-not-closed-v1 branch May 9, 2024 13:09
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.

None yet

2 participants