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

Some Puffin http cleanup #236

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gwen-lg
Copy link
Contributor

@gwen-lg gwen-lg commented Dec 23, 2024

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Some small cleanup of scopes collection management in serialization and puffin_http.

  • replace FrameView var by ScopeCollection in PuffinServerImpl, the other members of FrameView wasn't used.
  • use an Option<&ScopeCollection> as parameter of FrameData.write_into instead of &ScopeCollection + a boolean.

I think this changes make the code easier to understand.

The frame_view var is only added for use scope_collection member.
This change to directly use a ScopeCollection.
replace linked parameter scope_collection + bool send_all_scopes with an
Option<ScopeCollection>
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.

1 participant