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

qlog: Add explicit lifetime parameter to QlogSeqReader #1862

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

hawkinsw
Copy link
Contributor

By adding an explicit lifetime parameter to QlogSeqReader the lifetime of the Box'd BufReader's inner does not need to be 'static.

By adding an explicit lifetime parameter to QlogSeqReader the lifetime
of the Box'd BufReader's inner does not need to be 'static.
@hawkinsw hawkinsw requested a review from a team as a code owner October 17, 2024 04:37
@hawkinsw
Copy link
Contributor Author

I had great trouble instantiating a QlogSeqReader because of the generic lifetime of the struct -- the compiler was not able to deduce the relationship between lifetimes and insisted that I had references to objects that did not live long enough. I hope that this is helpful to someone else!

@ghedo ghedo merged commit 88c9f2a into cloudflare:master Oct 22, 2024
26 checks passed
@ghedo
Copy link
Member

ghedo commented Oct 22, 2024

Merged, thanks @hawkinsw!

@hawkinsw
Copy link
Contributor Author

Merged, thanks @hawkinsw!

Thank you, @ghedo , for accepting!! I really, really like the work that you and @LPardue have done with quiche!

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